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.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 3.2.3+maint.om/package.mo", uses=false) 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.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.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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001111/0.001116, allocations: 114.4 kB / 17.73 MB, free: 5.355 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.00113/0.001131, allocations: 183.1 kB / 18.66 MB, free: 4.434 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.33/1.33, allocations: 205.1 MB / 224.5 MB, free: 12.24 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.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.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001212/0.001212, allocations: 51.94 kB / 328 MB, free: 3.82 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07908/0.0803, allocations: 46.62 MB / 374.6 MB, free: 5.09 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.InverseModel): time 0.002774/0.08312, allocations: 1.669 MB / 376.3 MB, free: 3.406 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009724/0.08412, allocations: 0.5314 MB / 376.8 MB, free: 2.867 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.603e-05/0.08427, allocations: 0 / 376.8 MB, free: 2.867 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001149/0.08439, allocations: 11.86 kB / 376.8 MB, free: 2.855 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002022/0.0846, allocations: 27.78 kB / 376.9 MB, free: 2.828 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001716/0.08478, allocations: 43.89 kB / 376.9 MB, free: 2.785 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001856/0.08498, allocations: 111.7 kB / 377 MB, free: 2.676 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001257/0.08511, allocations: 29.11 kB / 377.1 MB, free: 2.648 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.847e-05/0.08522, allocations: 39.8 kB / 377.1 MB, free: 2.609 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.596e-05/0.08533, allocations: 39.77 kB / 377.1 MB, free: 2.57 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.176e-05/0.08536, allocations: 8 kB / 377.1 MB, free: 2.562 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.612e-05/0.08538, allocations: 8 kB / 377.1 MB, free: 2.555 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.913e-05/0.08547, allocations: 19.92 kB / 377.2 MB, free: 2.535 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 5.844e-05/0.08553, allocations: 43.73 kB / 377.2 MB, free: 2.492 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001639/0.0857, allocations: 91.45 kB / 377.3 MB, free: 2.402 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.97e-06/0.08571, allocations: 0 / 377.3 MB, free: 2.402 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.234e-06/0.08572, allocations: 4 kB / 377.3 MB, free: 2.398 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.78e-06/0.08573, allocations: 0 / 377.3 MB, free: 2.398 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.0006246/0.08636, allocations: 411 kB / 377.7 MB, free: 1.949 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.394e-05/0.08641, allocations: 8.031 kB / 377.7 MB, free: 1.941 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.262e-05/0.08647, allocations: 46.69 kB / 377.8 MB, free: 1.887 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.89e-05/0.08651, allocations: 12.84 kB / 377.8 MB, free: 1.875 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003506/0.08687, allocations: 212.7 kB / 378 MB, free: 1.629 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.462e-05/0.08689, allocations: 4.375 kB / 378 MB, free: 1.625 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.147e-05/0.08695, allocations: 15.92 kB / 378 MB, free: 1.609 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001979/0.08715, allocations: 77.66 kB / 378.1 MB, free: 1.527 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.026e-05/0.08717, allocations: 0 / 378.1 MB, free: 1.527 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.457e-05/0.08719, allocations: 4 kB / 378.1 MB, free: 1.523 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.279e-06/0.0872, allocations: 0 / 378.1 MB, free: 1.523 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001199/0.08733, allocations: 39.98 kB / 378.1 MB, free: 1.484 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000606/0.08794, allocations: 407.9 kB / 378.5 MB, free: 1.023 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001622/0.08812, allocations: 62.53 kB / 378.6 MB, free: 0.9531 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.187e-05/0.0882, allocations: 32.89 kB / 378.6 MB, free: 0.918 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.584e-05/0.08823, allocations: 4 kB / 378.6 MB, free: 0.9141 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.494e-05/0.08827, allocations: 30.56 kB / 378.6 MB, free: 0.875 MB / 318.1 MB Notification: Performance of pre-optimization done (n=5): time 1.242e-06/0.08828, allocations: 0 / 378.6 MB, free: 0.875 MB / 318.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002983/0.08858, allocations: 101.5 kB / 378.7 MB, free: 0.7695 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.667e-05/0.08863, allocations: 51.41 kB / 378.8 MB, free: 0.707 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001295/0.08876, allocations: 149.7 kB / 378.9 MB, free: 0.5508 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.53e-05/0.08878, allocations: 25.7 kB / 379 MB, free: 0.5195 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.375e-05/0.08887, allocations: 112.2 kB / 379.1 MB, free: 416 kB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.151e-05/0.0889, allocations: 23.84 kB / 379.1 MB, free: 392 kB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.083e-05/0.08895, allocations: 21.66 kB / 379.1 MB, free: 364 kB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001182/0.08908, allocations: 318.8 kB / 379.4 MB, free: 36 kB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.784e-05/0.08914, allocations: 19.98 kB / 379.4 MB, free: 16 kB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1676/0.2567, allocations: 16.58 kB / 379.5 MB, free: 12.84 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002018/0.257, allocations: 49.72 kB / 379.5 MB, free: 12.83 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.088e-06/0.257, allocations: 0.75 kB / 379.5 MB, free: 12.83 MB / 318.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.000215/0.2572, allocations: 87.92 kB / 379.6 MB, free: 12.8 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.932e-05/0.2572, allocations: 5.25 kB / 379.6 MB, free: 12.8 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.837e-06/0.2573, allocations: 1.438 kB / 379.6 MB, free: 12.8 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.149e-05/0.2573, allocations: 1.031 kB / 379.6 MB, free: 12.8 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002431/0.2575, allocations: 37.97 kB / 379.6 MB, free: 12.8 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.735e-06/0.2575, allocations: 5.922 kB / 379.7 MB, free: 12.8 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.98e-05/0.2576, allocations: 8.453 kB / 379.7 MB, free: 12.8 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.167e-06/0.2576, allocations: 2.219 kB / 379.7 MB, free: 12.8 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 8.955e-05/0.2577, allocations: 121 kB / 379.8 MB, free: 12.69 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.943e-05/0.2578, allocations: 11.45 kB / 379.8 MB, free: 12.69 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.626e-05/0.2578, allocations: 12.97 kB / 379.8 MB, free: 12.68 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.705e-06/0.2578, allocations: 0 / 379.8 MB, free: 12.68 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.47e-06/0.2578, allocations: 3.969 kB / 379.8 MB, free: 12.68 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.457e-06/0.2579, allocations: 3.578 kB / 379.8 MB, free: 12.68 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000201/0.2581, allocations: 204.1 kB / 380 MB, free: 12.49 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.2581, allocations: 0 / 380 MB, free: 12.49 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001541/0.2582, allocations: 22.55 kB / 380 MB, free: 12.49 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.467e-06/0.2582, allocations: 1.375 kB / 380 MB, free: 12.49 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.181e-05/0.2583, allocations: 1.5 kB / 380 MB, free: 12.49 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.844e-06/0.2583, allocations: 4.062 kB / 380 MB, free: 12.49 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.2583, allocations: 0 / 380 MB, free: 12.49 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002751/0.2586, allocations: 205.4 kB / 380.2 MB, free: 12.36 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.632e-05/0.2586, allocations: 88.62 kB / 380.3 MB, free: 12.27 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.25e-05/0.2586, allocations: 1.938 kB / 380.3 MB, free: 12.27 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.665e-05/0.2587, allocations: 2.5 kB / 380.3 MB, free: 12.27 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.214e-05/0.2588, allocations: 6.453 kB / 380.3 MB, free: 12.27 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.333e-06/0.2588, allocations: 3.281 kB / 380.3 MB, free: 12.27 MB / 318.1 MB Notification: Performance of sorting global known variables: time 7.013e-05/0.2589, allocations: 117.4 kB / 380.5 MB, free: 12.19 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.8e-07/0.2589, allocations: 3.75 kB / 380.5 MB, free: 12.19 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002453/0.2591, allocations: 15.47 kB / 380.5 MB, free: 12.19 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.0004291/0.2596, allocations: 0.7308 MB / 381.2 MB, free: 11.53 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001892/0.2598, allocations: 53.05 kB / 381.3 MB, free: 11.53 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.2598, allocations: 1.031 kB / 381.3 MB, free: 11.53 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 6.687e-05/0.2599, allocations: 25.2 kB / 381.3 MB, free: 11.53 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00035/0.2602, allocations: 24.88 kB / 381.3 MB, free: 11.53 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001687/0.2619, allocations: 1.573 MB / 382.9 MB, free: 10.32 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001606/0.2621, allocations: 0.7052 MB / 383.6 MB, free: 9.621 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 6.566e-05/0.2622, allocations: 8.906 kB / 383.6 MB, free: 9.617 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.622e-05/0.2622, allocations: 38.12 kB / 383.6 MB, free: 9.609 MB / 318.1 MB Notification: Performance of SimCode: time 4.61e-07/0.2622, allocations: 0 / 383.6 MB, free: 9.609 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02308/0.2853, allocations: 2.303 MB / 385.9 MB, free: 9.07 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.935/8.22, allocations: 11.86 kB / 385.9 MB, free: 9.059 MB / 318.1 MB (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.0004 Modelica_3_2_3_Modelica_Blocks_Examples_InverseModel.fmu > Modelica_3.2.3_Modelica.Blocks.Examples.InverseModel.pipe 2>&1) 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) Reference file matches