Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sine.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001495/0.001495, allocations: 113 kB / 18.49 MB, free: 4.539 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001543/0.001543, allocations: 217.4 kB / 21.46 MB, free: 1.586 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.35/1.35, allocations: 230.6 MB / 254.8 MB, free: 15.07 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sine,fileNamePrefix="Modelica_4_1_0_Modelica_Media_Examples_SolveOneNonlinearEquation_Inverse_sine",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sine,fileNamePrefix="Modelica_4_1_0_Modelica_Media_Examples_SolveOneNonlinearEquation_Inverse_sine",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001477/0.001477, allocations: 47.94 kB / 373.7 MB, free: 10.3 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08951/0.09099, allocations: 53.34 MB / 427 MB, free: 4.879 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sine): time 0.001497/0.09249, allocations: 0.505 MB / 427.5 MB, free: 4.375 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00181/0.0943, allocations: 1.451 MB / 429 MB, free: 2.906 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.033e-05/0.09432, allocations: 4 kB / 429 MB, free: 2.902 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.494e-05/0.09433, allocations: 4 kB / 429 MB, free: 2.898 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 2.55e-05/0.09436, allocations: 3.938 kB / 429 MB, free: 2.895 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006078/0.09496, allocations: 179.4 kB / 429.1 MB, free: 2.723 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.751e-05/0.09501, allocations: 15.98 kB / 429.2 MB, free: 2.707 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.965e-05/0.09505, allocations: 7.984 kB / 429.2 MB, free: 2.699 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.512e-05/0.09509, allocations: 12 kB / 429.2 MB, free: 2.688 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.299e-05/0.09514, allocations: 11.92 kB / 429.2 MB, free: 2.676 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.12e-05/0.09515, allocations: 4 kB / 429.2 MB, free: 2.672 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002625/0.09541, allocations: 167.8 kB / 429.4 MB, free: 2.508 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.463e-05/0.09543, allocations: 7.984 kB / 429.4 MB, free: 2.5 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.301e-05/0.09545, allocations: 11.92 kB / 429.4 MB, free: 2.488 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002035/0.09565, allocations: 115.7 kB / 429.5 MB, free: 2.375 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.076e-06/0.09566, allocations: 3.938 kB / 429.5 MB, free: 2.371 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.022e-06/0.09566, allocations: 0 / 429.5 MB, free: 2.371 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.398e-06/0.09566, allocations: 0 / 429.5 MB, free: 2.371 MB / 350.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.0003748/0.09604, allocations: 355.3 kB / 429.8 MB, free: 1.977 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.191e-05/0.09607, allocations: 12.03 kB / 429.9 MB, free: 1.965 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.756e-05/0.09609, allocations: 192 / 429.9 MB, free: 1.965 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.922e-05/0.09612, allocations: 34.69 kB / 429.9 MB, free: 1.922 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001136/0.09623, allocations: 4.938 kB / 429.9 MB, free: 1.918 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001274/0.09636, allocations: 164.4 kB / 430.1 MB, free: 1.719 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.321e-05/0.09637, allocations: 8.125 kB / 430.1 MB, free: 1.711 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.236e-06/0.09638, allocations: 4 kB / 430.1 MB, free: 1.707 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.003e-05/0.09647, allocations: 37.7 kB / 430.1 MB, free: 1.664 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.552e-06/0.09648, allocations: 0 / 430.1 MB, free: 1.664 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.185e-06/0.09648, allocations: 0 / 430.1 MB, free: 1.664 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.306e-06/0.09649, allocations: 0 / 430.1 MB, free: 1.664 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.113e-05/0.09651, allocations: 4 kB / 430.1 MB, free: 1.66 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004266/0.09694, allocations: 476.9 kB / 430.6 MB, free: 1.125 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.205e-05/0.09703, allocations: 173.2 kB / 430.7 MB, free: 0.9453 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.587e-05/0.09706, allocations: 80.14 kB / 430.8 MB, free: 0.8633 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.708e-05/0.0971, allocations: 79.28 kB / 430.9 MB, free: 0.7852 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.269e-05/0.09715, allocations: 105.8 kB / 431 MB, free: 0.6719 MB / 350.1 MB Notification: Performance of pre-optimization done (n=0): time 9.11e-07/0.09715, allocations: 0 / 431 MB, free: 0.6719 MB / 350.1 MB Notification: Performance of matching and sorting (n=0): time 7.04e-05/0.09722, allocations: 37.59 kB / 431 MB, free: 0.6289 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.145e-05/0.09732, allocations: 160.4 kB / 431.2 MB, free: 464 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001026/0.09742, allocations: 101.9 kB / 431.3 MB, free: 352 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.414e-05/0.09743, allocations: 29.64 kB / 431.3 MB, free: 316 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.65e-05/0.09749, allocations: 92.12 kB / 431.4 MB, free: 220 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.633e-06/0.09749, allocations: 0 / 431.4 MB, free: 220 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.59e-05/0.09753, allocations: 13.72 kB / 431.4 MB, free: 200 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.1687/0.2662, allocations: 318.2 kB / 431.7 MB, free: 10.96 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.592e-05/0.2663, allocations: 0.875 kB / 431.7 MB, free: 10.96 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.248e-05/0.2663, allocations: 8.5 kB / 431.7 MB, free: 10.96 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.571e-05/0.2663, allocations: 7.781 kB / 431.8 MB, free: 10.95 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.525e-06/0.2664, allocations: 0.5938 kB / 431.8 MB, free: 10.95 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001288/0.2665, allocations: 42.81 kB / 431.8 MB, free: 10.92 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.611e-05/0.2665, allocations: 4.625 kB / 431.8 MB, free: 10.92 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.438e-06/0.2665, allocations: 1 kB / 431.8 MB, free: 10.92 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.298e-05/0.2665, allocations: 0.8906 kB / 431.8 MB, free: 10.92 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.272e-05/0.2666, allocations: 5.562 kB / 431.8 MB, free: 10.92 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.68e-06/0.2666, allocations: 4.25 kB / 431.8 MB, free: 10.92 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.267e-05/0.2666, allocations: 2.156 kB / 431.8 MB, free: 10.92 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.939e-06/0.2666, allocations: 0.9375 kB / 431.8 MB, free: 10.92 MB / 350.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 5.828e-05/0.2667, allocations: 186.7 kB / 432 MB, free: 10.73 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.277e-05/0.2667, allocations: 106.2 kB / 432.1 MB, free: 10.63 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.669e-05/0.2668, allocations: 109.6 kB / 432.2 MB, free: 10.52 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.28e-05/0.2668, allocations: 187.4 kB / 432.4 MB, free: 10.34 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.123e-05/0.2668, allocations: 186 kB / 432.6 MB, free: 10.15 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.992e-05/0.2668, allocations: 178.7 kB / 432.8 MB, free: 9.973 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001311/0.267, allocations: 407.9 kB / 433.1 MB, free: 9.531 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.24e-05/0.267, allocations: 103.5 kB / 433.3 MB, free: 9.426 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.267e-05/0.267, allocations: 106.9 kB / 433.4 MB, free: 9.32 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.012e-05/0.267, allocations: 185.5 kB / 433.5 MB, free: 9.141 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.007e-05/0.267, allocations: 178.8 kB / 433.7 MB, free: 8.961 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.078e-05/0.2671, allocations: 183.6 kB / 433.9 MB, free: 8.781 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.056e-05/0.2671, allocations: 182 kB / 434.1 MB, free: 8.598 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.336e-05/0.2671, allocations: 307.9 kB / 434.4 MB, free: 8.289 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.853e-05/0.2672, allocations: 187.8 kB / 434.6 MB, free: 8.09 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.236e-05/0.2672, allocations: 181 kB / 434.7 MB, free: 7.91 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.519e-05/0.2673, allocations: 102.1 kB / 434.8 MB, free: 7.805 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.543e-05/0.2673, allocations: 188.2 kB / 435 MB, free: 7.621 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.248e-05/0.2673, allocations: 106.9 kB / 435.1 MB, free: 7.516 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.844e-05/0.2673, allocations: 91.02 kB / 435.2 MB, free: 7.441 MB / 350.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.2673, allocations: 0 / 435.2 MB, free: 7.441 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003149/0.2677, allocations: 39.52 kB / 435.2 MB, free: 7.441 MB / 350.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.0004819/0.2681, allocations: 0.8665 MB / 436.1 MB, free: 6.641 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 8.587e-05/0.2682, allocations: 8.016 kB / 436.1 MB, free: 6.641 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.2682, allocations: 0 / 436.1 MB, free: 6.641 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 2.634e-06/0.2682, allocations: 4.594 kB / 436.1 MB, free: 6.641 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002633/0.2685, allocations: 465 kB / 436.6 MB, free: 6.191 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003455/0.2688, allocations: 211.4 kB / 436.8 MB, free: 5.984 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.487e-05/0.2689, allocations: 0.6746 MB / 437.5 MB, free: 5.289 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001093/0.2691, allocations: 14.73 kB / 437.5 MB, free: 5.289 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.457e-05/0.2691, allocations: 9.969 kB / 437.5 MB, free: 5.281 MB / 350.1 MB Notification: Performance of SimCode: time 3.9e-07/0.2691, allocations: 0 / 437.5 MB, free: 5.281 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01702/0.2861, allocations: 1.927 MB / 439.4 MB, free: 4.867 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.644/7.93, allocations: 13.48 kB / 439.4 MB, free: 4.863 MB / 350.1 MB " [Timeout remaining time 652] (rm -f Modelica_4.1.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sine.pipe ; mkfifo Modelica_4.1.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sine.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sine.pipe >> ../files/Modelica_4.1.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sine.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sine_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Media_Examples_SolveOneNonlinearEquation_Inverse_sine_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Media_Examples_SolveOneNonlinearEquation_Inverse_sine.fmu > Modelica_4.1.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sine.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sine_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Media/Examples/SolveOneNonlinearEquation/Inverse_sine/Inverse_sine.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 10.12040665798122]