Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Blocks.Examples.InverseModel.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.001828/0.001828, allocations: 103.6 kB / 21.18 MB, free: 472 kB / 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.002304/0.002304, allocations: 216 kB / 24.47 MB, free: 3.793 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.437/1.437, allocations: 207.7 MB / 235.3 MB, free: 9.781 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.Blocks.Examples.InverseModel,fileNamePrefix="Modelica_3_2_3_Modelica_Blocks_Examples_InverseModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.InverseModel,fileNamePrefix="Modelica_3_2_3_Modelica_Blocks_Examples_InverseModel",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002027/0.002027, allocations: 55.92 kB / 347.2 MB, free: 9.898 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2611/0.2631, allocations: 49.15 MB / 396.3 MB, free: 8.871 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.InverseModel): time 0.003166/0.2663, allocations: 1.649 MB / 398 MB, free: 7.754 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.000797/0.2671, allocations: 0.5061 MB / 398.5 MB, free: 7.41 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.266e-05/0.2671, allocations: 2.531 kB / 398.5 MB, free: 7.41 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 9.363e-05/0.2672, allocations: 10.55 kB / 398.5 MB, free: 7.402 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001717/0.2674, allocations: 23.39 kB / 398.5 MB, free: 7.387 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001698/0.2676, allocations: 51.45 kB / 398.6 MB, free: 7.359 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001636/0.2677, allocations: 98.67 kB / 398.7 MB, free: 7.316 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001053/0.2678, allocations: 24.97 kB / 398.7 MB, free: 7.305 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.685e-05/0.2679, allocations: 51.09 kB / 398.7 MB, free: 7.277 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.367e-05/0.268, allocations: 38.97 kB / 398.8 MB, free: 7.258 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.165e-05/0.268, allocations: 6.688 kB / 398.8 MB, free: 7.258 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.861e-05/0.2681, allocations: 6.438 kB / 398.8 MB, free: 7.258 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.36e-05/0.2681, allocations: 20.78 kB / 398.8 MB, free: 7.246 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 4.271e-05/0.2682, allocations: 35.81 kB / 398.9 MB, free: 7.223 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000131/0.2683, allocations: 87.62 kB / 398.9 MB, free: 7.184 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.2683, allocations: 0.7969 kB / 398.9 MB, free: 7.184 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.2683, allocations: 4 kB / 398.9 MB, free: 7.18 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.869e-06/0.2683, allocations: 3.938 kB / 398.9 MB, free: 7.176 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0005308/0.2688, allocations: 330.4 kB / 399.3 MB, free: 6.875 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.341e-05/0.2689, allocations: 14.05 kB / 399.3 MB, free: 6.871 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.563e-05/0.2689, allocations: 39.06 kB / 399.3 MB, free: 6.828 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.27e-05/0.2689, allocations: 14.41 kB / 399.3 MB, free: 6.82 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002148/0.2692, allocations: 144.6 kB / 399.5 MB, free: 6.676 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.306e-05/0.2692, allocations: 11.75 kB / 399.5 MB, free: 6.668 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.801e-05/0.2692, allocations: 16.47 kB / 399.5 MB, free: 6.656 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001659/0.2694, allocations: 78.5 kB / 399.6 MB, free: 6.609 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.336e-06/0.2694, allocations: 0 / 399.6 MB, free: 6.609 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.021e-05/0.2694, allocations: 5.125 kB / 399.6 MB, free: 6.605 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.98e-06/0.2694, allocations: 1.281 kB / 399.6 MB, free: 6.605 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001071/0.2695, allocations: 38.09 kB / 399.6 MB, free: 6.598 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004255/0.2699, allocations: 311.4 kB / 399.9 MB, free: 6.32 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001403/0.2701, allocations: 56.06 kB / 400 MB, free: 6.285 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.237e-05/0.2701, allocations: 37.28 kB / 400 MB, free: 6.262 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.576e-05/0.2701, allocations: 1.375 kB / 400 MB, free: 6.262 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.611e-05/0.2702, allocations: 37.2 kB / 400.1 MB, free: 6.219 MB / 318.1 MB Notification: Performance of pre-optimization done (n=5): time 1.242e-06/0.2702, allocations: 0 / 400.1 MB, free: 6.219 MB / 318.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002642/0.2704, allocations: 95.73 kB / 400.2 MB, free: 6.164 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.636e-05/0.2704, allocations: 53.08 kB / 400.2 MB, free: 6.102 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.993e-05/0.2705, allocations: 142.3 kB / 400.3 MB, free: 5.988 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 9.077e-06/0.2706, allocations: 26.52 kB / 400.4 MB, free: 5.957 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.123e-05/0.2706, allocations: 117.5 kB / 400.5 MB, free: 5.848 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.254e-05/0.2706, allocations: 20.42 kB / 400.5 MB, free: 5.832 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.428e-05/0.2707, allocations: 20.92 kB / 400.5 MB, free: 5.812 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.763e-05/0.2707, allocations: 321.3 kB / 400.8 MB, free: 5.496 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.698e-05/0.2708, allocations: 25.16 kB / 400.9 MB, free: 5.484 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.681e-05/0.2708, allocations: 21.81 kB / 400.9 MB, free: 5.477 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001036/0.2709, allocations: 49 kB / 400.9 MB, free: 5.453 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.2709, allocations: 0 / 400.9 MB, free: 5.453 MB / 318.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001511/0.2711, allocations: 86.05 kB / 401 MB, free: 5.402 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.589e-05/0.2711, allocations: 9.062 kB / 401 MB, free: 5.398 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.15e-06/0.2711, allocations: 0.5625 kB / 401 MB, free: 5.398 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.436e-05/0.2711, allocations: 1.281 kB / 401 MB, free: 5.398 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00021/0.2713, allocations: 44.98 kB / 401.1 MB, free: 5.391 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.14e-06/0.2713, allocations: 0 / 401.1 MB, free: 5.391 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.067e-05/0.2714, allocations: 3.953 kB / 401.1 MB, free: 5.391 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.235e-06/0.2714, allocations: 1.25 kB / 401.1 MB, free: 5.391 MB / 318.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 (7): * Single equations (assignments): 7 * 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.616e-05/0.2714, allocations: 116.5 kB / 401.2 MB, free: 5.273 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.847e-05/0.2715, allocations: 15.53 kB / 401.2 MB, free: 5.262 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.658e-05/0.2715, allocations: 16.45 kB / 401.2 MB, free: 5.246 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.593e-06/0.2715, allocations: 1.375 kB / 401.2 MB, free: 5.246 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.835e-06/0.2715, allocations: 0 / 401.2 MB, free: 5.246 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.216e-06/0.2715, allocations: 1.734 kB / 401.2 MB, free: 5.246 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001431/0.2716, allocations: 162.7 kB / 401.4 MB, free: 5.074 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.895e-06/0.2716, allocations: 8.688 kB / 401.4 MB, free: 5.066 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001324/0.2718, allocations: 25.86 kB / 401.4 MB, free: 5.062 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.204e-06/0.2718, allocations: 4.594 kB / 401.4 MB, free: 5.059 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.828e-06/0.2718, allocations: 1.891 kB / 401.4 MB, free: 5.059 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.453e-06/0.2718, allocations: 240 / 401.4 MB, free: 5.059 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.91e-07/0.2718, allocations: 5.344 kB / 401.4 MB, free: 5.055 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002308/0.272, allocations: 206.2 kB / 401.6 MB, free: 4.891 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.858e-05/0.272, allocations: 12.03 kB / 401.6 MB, free: 4.883 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.956e-05/0.272, allocations: 6.109 kB / 401.6 MB, free: 4.879 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.002e-05/0.2721, allocations: 2.078 kB / 401.6 MB, free: 4.879 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.2e-05/0.2722, allocations: 5.312 kB / 401.7 MB, free: 4.879 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.982e-06/0.2722, allocations: 2.016 kB / 401.7 MB, free: 4.879 MB / 318.1 MB Notification: Performance of sorting global known variables: time 6.081e-05/0.2722, allocations: 111.5 kB / 401.8 MB, free: 4.793 MB / 318.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.2722, allocations: 1.125 kB / 401.8 MB, free: 4.793 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002418/0.2725, allocations: 23.67 kB / 401.8 MB, free: 4.781 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (firstOrder1.y,firstOrder2.y) * 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 (5): * Single equations (assignments): 5 * 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.000349/0.2728, allocations: 0.7335 MB / 402.5 MB, free: 4.09 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001476/0.273, allocations: 46 kB / 402.6 MB, free: 4.078 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.684e-06/0.273, allocations: 0 / 402.6 MB, free: 4.078 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 5.859e-05/0.273, allocations: 29.22 kB / 402.6 MB, free: 4.066 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003085/0.2733, allocations: 18.27 kB / 402.6 MB, free: 4.062 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001362/0.2747, allocations: 1.577 MB / 404.2 MB, free: 2.738 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.397e-05/0.2748, allocations: 90.02 kB / 404.3 MB, free: 2.664 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 4.722e-05/0.2748, allocations: 14.31 kB / 404.3 MB, free: 2.656 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.433e-05/0.2749, allocations: 34.42 kB / 404.3 MB, free: 2.629 MB / 318.1 MB Notification: Performance of SimCode: time 4.41e-07/0.2749, allocations: 0 / 404.3 MB, free: 2.629 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03895/0.3138, allocations: 2.89 MB / 407.2 MB, free: 1.492 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.08/11.39, allocations: 5.188 kB / 407.2 MB, free: 1.488 MB / 318.1 MB " [Timeout remaining time 648] (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.InverseModel.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.InverseModel.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.InverseModel.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.InverseModel.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Blocks.Examples.InverseModel_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00019992 Modelica_3_2_3_Modelica_Blocks_Examples_InverseModel.fmu > Modelica_3.2.3_Modelica.Blocks.Examples.InverseModel.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Blocks.Examples.InverseModel_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/InverseModel/InverseModel.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Blocks.Examples.InverseModel.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.930302002001554]