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.001688/0.001688, allocations: 100.4 kB / 17.58 MB, free: 5.418 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.001958/0.001958, allocations: 192 kB / 18.51 MB, free: 4.508 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.336/1.336, allocations: 205.1 MB / 224.4 MB, free: 12.31 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.001295/0.001295, allocations: 51.92 kB / 280.7 MB, free: 3.082 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08952/0.09083, allocations: 46.63 MB / 327.4 MB, free: 4.383 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.InverseModel): time 0.003356/0.09423, allocations: 1.669 MB / 329 MB, free: 2.691 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001055/0.09531, allocations: 0.523 MB / 329.6 MB, free: 2.16 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001137/0.09545, allocations: 8 kB / 329.6 MB, free: 2.152 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001217/0.09561, allocations: 11.86 kB / 329.6 MB, free: 2.141 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002114/0.09583, allocations: 23.8 kB / 329.6 MB, free: 2.117 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001965/0.09604, allocations: 51.81 kB / 329.7 MB, free: 2.066 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001829/0.09623, allocations: 95.7 kB / 329.8 MB, free: 1.973 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000142/0.09638, allocations: 37.09 kB / 329.8 MB, free: 1.938 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001021/0.09649, allocations: 39.8 kB / 329.8 MB, free: 1.898 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001019/0.0966, allocations: 43.77 kB / 329.9 MB, free: 1.855 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 2.611e-05/0.09664, allocations: 8 kB / 329.9 MB, free: 1.848 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.912e-05/0.09666, allocations: 8 kB / 329.9 MB, free: 1.84 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 6.53e-05/0.09673, allocations: 23.91 kB / 329.9 MB, free: 1.816 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 5.287e-05/0.09679, allocations: 35.75 kB / 329.9 MB, free: 1.781 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000155/0.09695, allocations: 83.92 kB / 330 MB, free: 1.699 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.09697, allocations: 0 / 330 MB, free: 1.699 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.09698, allocations: 0 / 330 MB, free: 1.699 MB / 270.1 MB Notification: Performance of Transformations before backend: time 6.252e-06/0.09699, allocations: 4 kB / 330 MB, free: 1.695 MB / 270.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.0006473/0.09764, allocations: 415 kB / 330.4 MB, free: 1.242 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.609e-05/0.0977, allocations: 12.03 kB / 330.4 MB, free: 1.23 MB / 270.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.145e-05/0.09774, allocations: 38.67 kB / 330.5 MB, free: 1.184 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.694e-05/0.0978, allocations: 20.75 kB / 330.5 MB, free: 1.164 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002496/0.09805, allocations: 192.8 kB / 330.7 MB, free: 0.9375 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.065e-06/0.09807, allocations: 384 / 330.7 MB, free: 0.9375 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.893e-05/0.09811, allocations: 19.84 kB / 330.7 MB, free: 0.918 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001932/0.09832, allocations: 81.66 kB / 330.8 MB, free: 0.832 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.162e-05/0.09834, allocations: 3.938 kB / 330.8 MB, free: 0.8281 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.214e-05/0.09836, allocations: 0 / 330.8 MB, free: 0.8281 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.003e-06/0.09837, allocations: 4 kB / 330.8 MB, free: 0.8242 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000146/0.09852, allocations: 43.91 kB / 330.8 MB, free: 0.7812 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006044/0.09913, allocations: 408 kB / 331.2 MB, free: 328 kB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001551/0.0993, allocations: 58.59 kB / 331.3 MB, free: 260 kB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.127e-05/0.09938, allocations: 28.89 kB / 331.3 MB, free: 228 kB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.188e-05/0.09941, allocations: 0 / 331.3 MB, free: 228 kB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.977e-05/0.09945, allocations: 34.56 kB / 331.4 MB, free: 184 kB / 270.1 MB Notification: Performance of pre-optimization done (n=5): time 1.303e-06/0.09946, allocations: 4 kB / 331.4 MB, free: 180 kB / 270.1 MB Notification: Performance of matching and sorting (n=5): time 0.0003266/0.09979, allocations: 105.4 kB / 331.5 MB, free: 68 kB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.753e-05/0.09984, allocations: 51.41 kB / 331.5 MB, free: 4 kB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001492/0.09999, allocations: 141.8 kB / 331.7 MB, free: 15.86 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.738e-05/0.1, allocations: 29.7 kB / 331.7 MB, free: 15.82 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.329e-05/0.1001, allocations: 109 kB / 331.8 MB, free: 15.71 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.132e-05/0.1001, allocations: 23.64 kB / 331.8 MB, free: 15.69 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.648e-05/0.1002, allocations: 21.72 kB / 331.8 MB, free: 15.66 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001524/0.1004, allocations: 322.8 kB / 332.2 MB, free: 15.34 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.655e-05/0.1004, allocations: 19.98 kB / 332.2 MB, free: 15.32 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.409e-05/0.1005, allocations: 19.98 kB / 332.2 MB, free: 15.3 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001244/0.1006, allocations: 48.84 kB / 332.2 MB, free: 15.25 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.468e-06/0.1006, allocations: 3.938 kB / 332.2 MB, free: 15.24 MB / 286.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001975/0.1008, allocations: 97.45 kB / 332.3 MB, free: 15.14 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.735e-05/0.1009, allocations: 8 kB / 332.3 MB, free: 15.13 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.724e-06/0.1009, allocations: 0 / 332.3 MB, free: 15.13 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.395e-05/0.1009, allocations: 3.938 kB / 332.3 MB, free: 15.13 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002287/0.1011, allocations: 35.97 kB / 332.4 MB, free: 15.09 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.677e-06/0.1012, allocations: 4 kB / 332.4 MB, free: 15.09 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.561e-05/0.1012, allocations: 3.984 kB / 332.4 MB, free: 15.09 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.262e-05/0.1012, allocations: 4 kB / 332.4 MB, free: 15.08 MB / 286.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.498e-05/0.1013, allocations: 113.8 kB / 332.5 MB, free: 14.96 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.268e-05/0.1014, allocations: 15.84 kB / 332.5 MB, free: 14.95 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.306e-05/0.1014, allocations: 12.31 kB / 332.5 MB, free: 14.93 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.884e-06/0.1014, allocations: 3.938 kB / 332.5 MB, free: 14.93 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.751e-06/0.1014, allocations: 4 kB / 332.5 MB, free: 14.92 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.85e-06/0.1014, allocations: 4.234 kB / 332.5 MB, free: 14.92 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002239/0.1017, allocations: 197.6 kB / 332.7 MB, free: 14.68 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.418e-06/0.1017, allocations: 7.938 kB / 332.7 MB, free: 14.67 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001414/0.1018, allocations: 19.98 kB / 332.8 MB, free: 14.65 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.036e-06/0.1018, allocations: 0 / 332.8 MB, free: 14.65 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.018e-05/0.1019, allocations: 0 / 332.8 MB, free: 14.65 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.924e-06/0.1019, allocations: 4 kB / 332.8 MB, free: 14.64 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.1019, allocations: 0 / 332.8 MB, free: 14.64 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002844/0.1022, allocations: 203.3 kB / 333 MB, free: 14.43 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.175e-05/0.1022, allocations: 88.98 kB / 333.1 MB, free: 14.32 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.844e-05/0.1022, allocations: 0 / 333.1 MB, free: 14.32 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.409e-05/0.1023, allocations: 7.984 kB / 333.1 MB, free: 14.32 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.435e-05/0.1024, allocations: 3.938 kB / 333.1 MB, free: 14.31 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.629e-06/0.1024, allocations: 4.062 kB / 333.1 MB, free: 14.31 MB / 286.1 MB Notification: Performance of sorting global known variables: time 8.348e-05/0.1025, allocations: 119.9 kB / 333.2 MB, free: 14.19 MB / 286.1 MB Notification: Performance of sort global known variables: time 4.91e-07/0.1025, allocations: 0 / 333.2 MB, free: 14.19 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002292/0.1027, allocations: 15.94 kB / 333.2 MB, free: 14.18 MB / 286.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.0005401/0.1033, allocations: 0.7281 MB / 333.9 MB, free: 13.42 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.000174/0.1035, allocations: 51.91 kB / 334 MB, free: 13.37 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.1035, allocations: 4 kB / 334 MB, free: 13.37 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 7.16e-05/0.1035, allocations: 23.98 kB / 334 MB, free: 13.34 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000422/0.104, allocations: 23.92 kB / 334 MB, free: 13.32 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00184/0.1058, allocations: 1.557 MB / 335.6 MB, free: 11.68 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002667/0.1061, allocations: 0.7117 MB / 336.3 MB, free: 10.95 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 4.799e-05/0.1062, allocations: 12.23 kB / 336.3 MB, free: 10.93 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.776e-05/0.1062, allocations: 31.42 kB / 336.3 MB, free: 10.9 MB / 286.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1062, allocations: 0 / 336.3 MB, free: 10.9 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01985/0.1261, allocations: 2.242 MB / 338.6 MB, free: 8.609 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.359/7.485, allocations: 23.44 kB / 338.6 MB, free: 8.586 MB / 286.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