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.00198/0.00198, allocations: 116 kB / 20.43 MB, free: 1.449 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.002438/0.002438, allocations: 214.5 kB / 23.74 MB, free: 4.66 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.467/1.467, allocations: 230.6 MB / 257.5 MB, free: 8.008 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sine,fileNamePrefix="Modelica_4_1_0_Modelica_Media_Examples_SolveOneNonlinearEquation_Inverse_sine",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00166/0.00166, allocations: 47.92 kB / 377.8 MB, free: 3.156 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2506/0.2523, allocations: 53.36 MB / 431.1 MB, free: 6.859 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sine): time 0.001914/0.2542, allocations: 0.5045 MB / 431.6 MB, free: 6.359 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002296/0.2565, allocations: 1.47 MB / 433.1 MB, free: 4.875 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.98e-05/0.2565, allocations: 0 / 433.1 MB, free: 4.875 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 1.8e-05/0.2565, allocations: 3.938 kB / 433.1 MB, free: 4.871 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 2.834e-05/0.2566, allocations: 0 / 433.1 MB, free: 4.871 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007308/0.2573, allocations: 191.3 kB / 433.3 MB, free: 4.688 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 5.914e-05/0.2574, allocations: 15.98 kB / 433.3 MB, free: 4.672 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.784e-05/0.2574, allocations: 3.984 kB / 433.3 MB, free: 4.668 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.329e-05/0.2574, allocations: 7.938 kB / 433.3 MB, free: 4.66 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.889e-05/0.2575, allocations: 8 kB / 433.3 MB, free: 4.652 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.221e-05/0.2575, allocations: 0 / 433.3 MB, free: 4.652 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003381/0.2579, allocations: 175.8 kB / 433.5 MB, free: 4.48 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 1.761e-05/0.2579, allocations: 7.969 kB / 433.5 MB, free: 4.473 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 2.356e-05/0.2579, allocations: 7.938 kB / 433.5 MB, free: 4.465 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000262/0.2582, allocations: 124.1 kB / 433.6 MB, free: 4.348 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.2582, allocations: 8 kB / 433.6 MB, free: 4.34 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.2582, allocations: 0 / 433.6 MB, free: 4.34 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.881e-06/0.2582, allocations: 0 / 433.6 MB, free: 4.34 MB / 334.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.0003834/0.2586, allocations: 278.1 kB / 433.9 MB, free: 4.039 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.183e-05/0.2586, allocations: 8.031 kB / 433.9 MB, free: 4.031 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.624e-05/0.2587, allocations: 34.75 kB / 434 MB, free: 3.988 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001507/0.2588, allocations: 4.938 kB / 434 MB, free: 3.984 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001246/0.2589, allocations: 106.5 kB / 434.1 MB, free: 3.855 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.247e-05/0.2589, allocations: 384 / 434.1 MB, free: 3.855 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.233e-05/0.259, allocations: 7.938 kB / 434.1 MB, free: 3.848 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001097/0.2591, allocations: 33.69 kB / 434.1 MB, free: 3.809 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.039e-05/0.2591, allocations: 0 / 434.1 MB, free: 3.809 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.141e-05/0.2591, allocations: 0 / 434.1 MB, free: 3.809 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.061e-06/0.2591, allocations: 0 / 434.1 MB, free: 3.809 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.8e-05/0.2591, allocations: 4 kB / 434.1 MB, free: 3.805 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004581/0.2596, allocations: 378.9 kB / 434.5 MB, free: 3.391 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001021/0.2597, allocations: 169.1 kB / 434.6 MB, free: 3.215 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.955e-05/0.2597, allocations: 80.14 kB / 434.7 MB, free: 3.133 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.182e-05/0.2598, allocations: 83.22 kB / 434.8 MB, free: 3.051 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.661e-05/0.2598, allocations: 105.8 kB / 434.9 MB, free: 2.938 MB / 334.1 MB Notification: Performance of pre-optimization done (n=0): time 9.21e-07/0.2598, allocations: 0 / 434.9 MB, free: 2.938 MB / 334.1 MB Notification: Performance of matching and sorting (n=0): time 8.747e-05/0.2599, allocations: 37.64 kB / 434.9 MB, free: 2.895 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.558e-05/0.26, allocations: 152.4 kB / 435.1 MB, free: 2.727 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001159/0.2601, allocations: 109.8 kB / 435.2 MB, free: 2.609 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.592e-05/0.2602, allocations: 25.7 kB / 435.2 MB, free: 2.578 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.165e-05/0.2602, allocations: 88.08 kB / 435.3 MB, free: 2.488 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.485e-06/0.2602, allocations: 0 / 435.3 MB, free: 2.488 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.284e-05/0.2603, allocations: 25.64 kB / 435.3 MB, free: 2.457 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001433/0.2604, allocations: 314.8 kB / 435.6 MB, free: 2.141 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.281e-05/0.2604, allocations: 4 kB / 435.6 MB, free: 2.137 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.192e-05/0.2604, allocations: 4 kB / 435.6 MB, free: 2.133 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.931e-05/0.2605, allocations: 12.86 kB / 435.7 MB, free: 2.117 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.2605, allocations: 256 / 435.7 MB, free: 2.117 MB / 334.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001322/0.2606, allocations: 45.58 kB / 435.7 MB, free: 2.066 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.383e-05/0.2606, allocations: 4 kB / 435.7 MB, free: 2.062 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.292e-06/0.2606, allocations: 4 kB / 435.7 MB, free: 2.059 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.681e-05/0.2606, allocations: 3.984 kB / 435.7 MB, free: 2.055 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.437e-05/0.2607, allocations: 8.125 kB / 435.7 MB, free: 2.047 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.571e-06/0.2607, allocations: 0 / 435.7 MB, free: 2.047 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.37e-05/0.2607, allocations: 0 / 435.7 MB, free: 2.047 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.147e-06/0.2607, allocations: 0 / 435.7 MB, free: 2.047 MB / 334.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 0.0001327/0.2609, allocations: 197 kB / 435.9 MB, free: 1.844 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.598e-05/0.2609, allocations: 104.9 kB / 436 MB, free: 1.734 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.086e-05/0.261, allocations: 108.5 kB / 436.1 MB, free: 1.617 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.471e-05/0.2611, allocations: 180.3 kB / 436.3 MB, free: 1.434 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.377e-05/0.2612, allocations: 180.2 kB / 436.5 MB, free: 1.25 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.54e-05/0.2613, allocations: 180.2 kB / 436.7 MB, free: 1.066 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002792/0.2615, allocations: 384.2 kB / 437 MB, free: 0.6406 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.242e-05/0.2616, allocations: 101 kB / 437.1 MB, free: 0.5352 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.622e-05/0.2616, allocations: 105 kB / 437.2 MB, free: 436 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.835e-05/0.2617, allocations: 188.2 kB / 437.4 MB, free: 240 kB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.668e-05/0.2618, allocations: 180.3 kB / 437.6 MB, free: 52 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000107/0.2619, allocations: 180.4 kB / 437.8 MB, free: 15.87 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.316e-05/0.262, allocations: 188.3 kB / 438 MB, free: 15.68 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001853/0.2622, allocations: 315.6 kB / 438.3 MB, free: 15.34 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.567e-05/0.2623, allocations: 101 kB / 438.4 MB, free: 15.24 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001062/0.2624, allocations: 188.2 kB / 438.5 MB, free: 15.05 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001149/0.2625, allocations: 101 kB / 438.6 MB, free: 14.94 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.513e-05/0.2626, allocations: 176.3 kB / 438.8 MB, free: 14.76 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.169e-05/0.2626, allocations: 112.9 kB / 438.9 MB, free: 14.64 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.933e-05/0.2627, allocations: 91.27 kB / 439 MB, free: 14.55 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2627, allocations: 0 / 439 MB, free: 14.55 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003168/0.263, allocations: 39.88 kB / 439.1 MB, free: 14.52 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.0008116/0.2638, allocations: 0.8736 MB / 439.9 MB, free: 13.62 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 9.551e-05/0.2639, allocations: 7.938 kB / 439.9 MB, free: 13.62 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.298e-06/0.2639, allocations: 4 kB / 439.9 MB, free: 13.61 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 1.743e-06/0.2639, allocations: 0 / 439.9 MB, free: 13.61 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004564/0.2644, allocations: 458.6 kB / 440.4 MB, free: 13.16 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004424/0.2648, allocations: 213.9 kB / 440.6 MB, free: 12.91 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003437/0.2652, allocations: 0.6729 MB / 441.3 MB, free: 12.21 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001506/0.2653, allocations: 11.98 kB / 441.3 MB, free: 12.2 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.186e-05/0.2654, allocations: 7.438 kB / 441.3 MB, free: 12.2 MB / 350.1 MB Notification: Performance of SimCode: time 4.41e-07/0.2654, allocations: 0 / 441.3 MB, free: 12.2 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03134/0.2967, allocations: 1.983 MB / 443.3 MB, free: 10.35 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.67/10.97, allocations: 7.984 kB / 443.3 MB, free: 10.34 MB / 350.1 MB " [Timeout remaining time 649] (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: 13.316107340855524]