Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sine.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sine,fileNamePrefix="Modelica_4_0_0_Modelica_Media_Examples_SolveOneNonlinearEquation_Inverse_sine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sine,fileNamePrefix="Modelica_4_0_0_Modelica_Media_Examples_SolveOneNonlinearEquation_Inverse_sine",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001294/0.001294, allocations: 107.3 kB / 16.92 MB, free: 5.77 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001245/0.001245, allocations: 191.3 kB / 17.85 MB, free: 5.168 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.287/2.287, allocations: 222.9 MB / 241.5 MB, free: 15.28 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001438/0.001438, allocations: 49.64 kB / 300.7 MB, free: 5.797 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08638/0.08784, allocations: 49.44 MB / 350.2 MB, free: 4.34 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sine): time 0.001614/0.0895, allocations: 0.4988 MB / 350.7 MB, free: 3.836 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001593/0.0911, allocations: 1.379 MB / 352 MB, free: 2.441 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.869e-05/0.09113, allocations: 0 / 352 MB, free: 2.441 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 1.308e-05/0.09116, allocations: 0 / 352 MB, free: 2.441 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 2.268e-05/0.09119, allocations: 3.938 kB / 352 MB, free: 2.438 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005482/0.09174, allocations: 182.1 kB / 352.2 MB, free: 2.266 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 4.273e-05/0.09179, allocations: 15.94 kB / 352.2 MB, free: 2.25 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.522e-05/0.09183, allocations: 3.984 kB / 352.2 MB, free: 2.246 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.864e-05/0.09188, allocations: 8 kB / 352.2 MB, free: 2.238 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.165e-05/0.09194, allocations: 15.92 kB / 352.3 MB, free: 2.223 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.273e-05/0.09196, allocations: 0 / 352.3 MB, free: 2.223 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002551/0.09222, allocations: 115.8 kB / 352.4 MB, free: 2.109 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 1.352e-05/0.09224, allocations: 3.984 kB / 352.4 MB, free: 2.105 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 2.403e-05/0.09227, allocations: 11.94 kB / 352.4 MB, free: 2.094 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002014/0.09248, allocations: 119.8 kB / 352.5 MB, free: 1.977 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.437e-06/0.09249, allocations: 4 kB / 352.5 MB, free: 1.973 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.0925, allocations: 0 / 352.5 MB, free: 1.973 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.099e-06/0.09251, allocations: 0 / 352.5 MB, free: 1.973 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0003187/0.09283, allocations: 347.7 kB / 352.8 MB, free: 1.586 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.33e-05/0.09287, allocations: 8.031 kB / 352.9 MB, free: 1.578 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.607e-05/0.09291, allocations: 34.75 kB / 352.9 MB, free: 1.535 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.832e-05/0.09294, allocations: 8.938 kB / 352.9 MB, free: 1.527 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001049/0.09305, allocations: 168.3 kB / 353.1 MB, free: 1.324 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.103e-05/0.09307, allocations: 4.312 kB / 353.1 MB, free: 1.32 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.656e-06/0.09308, allocations: 3.938 kB / 353.1 MB, free: 1.316 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.505e-05/0.09318, allocations: 33.7 kB / 353.1 MB, free: 1.277 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.154e-06/0.0932, allocations: 3.938 kB / 353.1 MB, free: 1.273 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.031e-05/0.09321, allocations: 4 kB / 353.1 MB, free: 1.27 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.677e-06/0.09322, allocations: 0 / 353.1 MB, free: 1.27 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.123e-05/0.09325, allocations: 3.984 kB / 353.1 MB, free: 1.266 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004/0.09365, allocations: 473 kB / 353.6 MB, free: 0.7344 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.504e-05/0.09374, allocations: 177.1 kB / 353.8 MB, free: 0.5508 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.894e-05/0.09378, allocations: 84.14 kB / 353.8 MB, free: 476 kB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.287e-05/0.0938, allocations: 75.28 kB / 353.9 MB, free: 400 kB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.021e-05/0.09386, allocations: 109.8 kB / 354 MB, free: 280 kB / 286.1 MB Notification: Performance of pre-optimization done (n=0): time 1.022e-06/0.09387, allocations: 0 / 354 MB, free: 280 kB / 286.1 MB Notification: Performance of matching and sorting (n=0): time 6.483e-05/0.09394, allocations: 25.7 kB / 354 MB, free: 248 kB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.383e-05/0.09402, allocations: 164.3 kB / 354.2 MB, free: 64 kB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001047/0.09413, allocations: 109.8 kB / 354.3 MB, free: 15.95 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.171e-05/0.09415, allocations: 25.7 kB / 354.3 MB, free: 15.91 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.163e-05/0.09421, allocations: 84.05 kB / 354.4 MB, free: 15.83 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.863e-06/0.09421, allocations: 4 kB / 354.4 MB, free: 15.82 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.326e-05/0.09425, allocations: 17.72 kB / 354.4 MB, free: 15.8 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001147/0.09437, allocations: 318.8 kB / 354.7 MB, free: 15.48 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.243e-05/0.09441, allocations: 4 kB / 354.8 MB, free: 15.48 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.836e-05/0.09445, allocations: 7.938 kB / 354.8 MB, free: 15.47 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.642e-05/0.09448, allocations: 8.859 kB / 354.8 MB, free: 15.46 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.192e-06/0.09449, allocations: 0 / 354.8 MB, free: 15.46 MB / 302.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001065/0.0946, allocations: 37.7 kB / 354.8 MB, free: 15.41 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.165e-05/0.09462, allocations: 7.938 kB / 354.8 MB, free: 15.41 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.118e-06/0.09463, allocations: 0 / 354.8 MB, free: 15.41 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.198e-05/0.09465, allocations: 3.984 kB / 354.8 MB, free: 15.4 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.854e-05/0.09471, allocations: 4.125 kB / 354.8 MB, free: 15.4 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.41e-06/0.09472, allocations: 4 kB / 354.8 MB, free: 15.39 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.056e-05/0.09477, allocations: 0 / 354.8 MB, free: 15.39 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.667e-06/0.09478, allocations: 0 / 354.8 MB, free: 15.39 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.817e-05/0.09488, allocations: 189.1 kB / 355 MB, free: 15.2 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.991e-05/0.09494, allocations: 105 kB / 355.1 MB, free: 15.09 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.489e-05/0.09499, allocations: 120.4 kB / 355.2 MB, free: 14.96 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.687e-05/0.09506, allocations: 180.3 kB / 355.4 MB, free: 14.78 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.462e-05/0.09513, allocations: 176.3 kB / 355.6 MB, free: 14.6 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.955e-05/0.09519, allocations: 180.2 kB / 355.8 MB, free: 14.41 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002092/0.09541, allocations: 409.4 kB / 356.2 MB, free: 13.96 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.469e-05/0.09545, allocations: 104.9 kB / 356.3 MB, free: 13.85 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.078e-05/0.09549, allocations: 113.1 kB / 356.4 MB, free: 13.73 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.582e-05/0.09555, allocations: 180.3 kB / 356.5 MB, free: 13.55 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.994e-05/0.09561, allocations: 184.2 kB / 356.7 MB, free: 13.36 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.574e-05/0.09567, allocations: 180.3 kB / 356.9 MB, free: 13.18 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.997e-05/0.09573, allocations: 188.1 kB / 357.1 MB, free: 12.98 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001384/0.09588, allocations: 311.8 kB / 357.4 MB, free: 12.66 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.607e-05/0.09595, allocations: 189.9 kB / 357.6 MB, free: 12.45 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.873e-05/0.09601, allocations: 176.3 kB / 357.7 MB, free: 12.27 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.014e-05/0.09611, allocations: 108.9 kB / 357.8 MB, free: 12.15 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.507e-05/0.0962, allocations: 180.2 kB / 358 MB, free: 11.97 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.35e-05/0.09624, allocations: 101 kB / 358.1 MB, free: 11.86 MB / 302.1 MB Notification: Performance of sorting global known variables: time 4.272e-05/0.09629, allocations: 95.22 kB / 358.2 MB, free: 11.77 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.0963, allocations: 0 / 358.2 MB, free: 11.77 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002722/0.09657, allocations: 47.92 kB / 358.3 MB, free: 11.72 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (0): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006199/0.0972, allocations: 0.8752 MB / 359.1 MB, free: 10.84 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 7.08e-05/0.09728, allocations: 4 kB / 359.1 MB, free: 10.83 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.09729, allocations: 0 / 359.1 MB, free: 10.83 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 3.596e-06/0.0973, allocations: 3.938 kB / 359.1 MB, free: 10.83 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000339/0.09764, allocations: 455.8 kB / 359.6 MB, free: 10.38 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003412/0.09799, allocations: 209.9 kB / 359.8 MB, free: 10.13 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002243/0.09823, allocations: 0.6806 MB / 360.5 MB, free: 9.426 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.418e-05/0.09833, allocations: 11.98 kB / 360.5 MB, free: 9.414 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.392e-05/0.09836, allocations: 11.44 kB / 360.5 MB, free: 9.402 MB / 302.1 MB Notification: Performance of SimCode: time 2.61e-07/0.09836, allocations: 4 kB / 360.5 MB, free: 9.398 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01658/0.115, allocations: 1.78 MB / 362.3 MB, free: 7.715 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.117/7.232, allocations: 11.14 kB / 362.3 MB, free: 7.707 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sine.pipe ; mkfifo Modelica_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sine.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sine.pipe >> ../files/Modelica_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sine.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sine_res.csv --start-time 0 --stop-time 0 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0 Modelica_4_0_0_Modelica_Media_Examples_SolveOneNonlinearEquation_Inverse_sine.fmu > Modelica_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sine.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sine_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/SolveOneNonlinearEquation/Inverse_sine/Inverse_sine.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches