Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_Modelica_Blocks_Examples_InverseModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.InverseModel,fileNamePrefix="Modelica_4_0_0_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.001208/0.001208, allocations: 112.8 kB / 17.06 MB, free: 5.996 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.001582/0.001582, allocations: 198.9 kB / 18 MB, free: 5.078 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.268/2.268, allocations: 222.9 MB / 241.7 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001817/0.001817, allocations: 51.92 kB / 350.8 MB, free: 3.75 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4539/0.4557, allocations: 49.44 MB / 400.2 MB, free: 8.395 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.InverseModel): time 0.007372/0.4632, allocations: 1.674 MB / 401.9 MB, free: 7.082 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001878/0.4651, allocations: 499.7 kB / 402.4 MB, free: 6.637 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002229/0.4654, allocations: 0 / 402.4 MB, free: 6.637 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001813/0.4656, allocations: 15.86 kB / 402.4 MB, free: 6.621 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003788/0.466, allocations: 19.8 kB / 402.4 MB, free: 6.602 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003787/0.4664, allocations: 43.94 kB / 402.5 MB, free: 6.559 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003474/0.4668, allocations: 103.6 kB / 402.6 MB, free: 6.457 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002006/0.467, allocations: 33.08 kB / 402.6 MB, free: 6.426 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001768/0.4672, allocations: 43.8 kB / 402.6 MB, free: 6.383 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001922/0.4674, allocations: 43.78 kB / 402.7 MB, free: 6.34 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.042e-05/0.4675, allocations: 8 kB / 402.7 MB, free: 6.332 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.309e-05/0.4675, allocations: 7.938 kB / 402.7 MB, free: 6.324 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001122/0.4677, allocations: 23.91 kB / 402.7 MB, free: 6.301 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001005/0.4678, allocations: 43.73 kB / 402.8 MB, free: 6.258 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002715/0.4681, allocations: 85.39 kB / 402.8 MB, free: 6.176 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.606e-06/0.4681, allocations: 0 / 402.8 MB, free: 6.176 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.697e-06/0.4681, allocations: 0 / 402.8 MB, free: 6.176 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.162e-05/0.4681, allocations: 0 / 402.8 MB, free: 6.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.001159/0.4693, allocations: 414.9 kB / 403.3 MB, free: 5.723 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.012e-05/0.4694, allocations: 12.03 kB / 403.3 MB, free: 5.711 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.511e-05/0.4695, allocations: 38.73 kB / 403.3 MB, free: 5.664 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.74e-05/0.4696, allocations: 16.78 kB / 403.3 MB, free: 5.648 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005905/0.4702, allocations: 205.5 kB / 403.5 MB, free: 5.41 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.792e-05/0.4702, allocations: 4 kB / 403.5 MB, free: 5.406 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.649e-05/0.4703, allocations: 11.94 kB / 403.5 MB, free: 5.395 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003234/0.4706, allocations: 81.59 kB / 403.6 MB, free: 5.309 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.232e-05/0.4707, allocations: 0 / 403.6 MB, free: 5.309 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.463e-05/0.4707, allocations: 8 kB / 403.6 MB, free: 5.301 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.342e-06/0.4707, allocations: 0 / 403.6 MB, free: 5.301 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001876/0.4709, allocations: 39.97 kB / 403.7 MB, free: 5.262 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00102/0.472, allocations: 411.8 kB / 404.1 MB, free: 4.797 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002364/0.4722, allocations: 58.59 kB / 404.1 MB, free: 4.73 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001163/0.4723, allocations: 28.89 kB / 404.1 MB, free: 4.699 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.189e-05/0.4724, allocations: 3.938 kB / 404.2 MB, free: 4.695 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.388e-05/0.4725, allocations: 34.56 kB / 404.2 MB, free: 4.652 MB / 318.1 MB Notification: Performance of pre-optimization done (n=5): time 2.224e-06/0.4725, allocations: 0 / 404.2 MB, free: 4.652 MB / 318.1 MB Notification: Performance of matching and sorting (n=5): time 0.0005482/0.473, allocations: 101.5 kB / 404.3 MB, free: 4.547 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.479e-05/0.4731, allocations: 55.41 kB / 404.3 MB, free: 4.48 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002239/0.4734, allocations: 140.1 kB / 404.5 MB, free: 4.336 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.787e-05/0.4734, allocations: 25.7 kB / 404.5 MB, free: 4.305 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001364/0.4736, allocations: 112.1 kB / 404.6 MB, free: 4.191 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.066e-05/0.4736, allocations: 15.8 kB / 404.6 MB, free: 4.176 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.412e-05/0.4737, allocations: 17.72 kB / 404.6 MB, free: 4.152 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0002199/0.474, allocations: 322.8 kB / 405 MB, free: 3.828 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001211/0.4741, allocations: 27.98 kB / 405 MB, free: 3.801 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001111/0.4742, allocations: 19.98 kB / 405 MB, free: 3.781 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002044/0.4745, allocations: 56.86 kB / 405.1 MB, free: 3.723 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.905e-06/0.4745, allocations: 0 / 405.1 MB, free: 3.723 MB / 318.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002766/0.4748, allocations: 89.48 kB / 405.1 MB, free: 3.629 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.389e-05/0.4748, allocations: 4 kB / 405.2 MB, free: 3.625 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.582e-06/0.4748, allocations: 0 / 405.2 MB, free: 3.625 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.014e-05/0.4749, allocations: 0 / 405.2 MB, free: 3.625 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003832/0.4752, allocations: 43.97 kB / 405.2 MB, free: 3.582 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.146e-05/0.4753, allocations: 0 / 405.2 MB, free: 3.582 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.725e-05/0.4754, allocations: 7.984 kB / 405.2 MB, free: 3.574 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.131e-05/0.4754, allocations: 4 kB / 405.2 MB, free: 3.57 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 0.0001596/0.4756, allocations: 121.7 kB / 405.3 MB, free: 3.441 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6e-05/0.4757, allocations: 11.89 kB / 405.3 MB, free: 3.43 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.046e-05/0.4757, allocations: 12.31 kB / 405.3 MB, free: 3.41 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.255e-06/0.4758, allocations: 4.234 kB / 405.4 MB, free: 3.406 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.075e-06/0.4758, allocations: 7.938 kB / 405.4 MB, free: 3.398 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.276e-06/0.4758, allocations: 4 kB / 405.4 MB, free: 3.395 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003678/0.4762, allocations: 201.5 kB / 405.6 MB, free: 3.148 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.4762, allocations: 3.938 kB / 405.6 MB, free: 3.145 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000243/0.4764, allocations: 19.98 kB / 405.6 MB, free: 3.125 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.807e-06/0.4765, allocations: 0 / 405.6 MB, free: 3.125 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.183e-05/0.4765, allocations: 4 kB / 405.6 MB, free: 3.121 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.091e-06/0.4765, allocations: 4 kB / 405.6 MB, free: 3.117 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.903e-06/0.4765, allocations: 0 / 405.6 MB, free: 3.117 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004875/0.477, allocations: 203.4 kB / 405.8 MB, free: 2.902 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.579e-05/0.4771, allocations: 81.02 kB / 405.9 MB, free: 2.805 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.798e-05/0.4772, allocations: 11.92 kB / 405.9 MB, free: 2.793 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001389/0.4773, allocations: 4 kB / 405.9 MB, free: 2.789 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.511e-05/0.4774, allocations: 0 / 405.9 MB, free: 2.789 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.271e-05/0.4774, allocations: 4 kB / 405.9 MB, free: 2.785 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001416/0.4776, allocations: 110.2 kB / 406 MB, free: 2.68 MB / 318.1 MB Notification: Performance of sort global known variables: time 3.41e-07/0.4776, allocations: 4.062 kB / 406 MB, free: 2.676 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004378/0.478, allocations: 19.91 kB / 406 MB, free: 2.656 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.000913/0.479, allocations: 0.7318 MB / 406.8 MB, free: 1.898 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003066/0.4793, allocations: 51.91 kB / 406.8 MB, free: 1.848 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.977e-06/0.4793, allocations: 4.062 kB / 406.8 MB, free: 1.844 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000115/0.4794, allocations: 19.98 kB / 406.8 MB, free: 1.824 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005745/0.48, allocations: 28.45 kB / 406.9 MB, free: 1.801 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00294/0.483, allocations: 1.569 MB / 408.4 MB, free: 156 kB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004693/0.4835, allocations: 0.7041 MB / 409.1 MB, free: 15.42 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.419e-05/0.4836, allocations: 11.98 kB / 409.1 MB, free: 15.41 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.514e-05/0.4837, allocations: 27.42 kB / 409.2 MB, free: 15.38 MB / 334.1 MB Notification: Performance of SimCode: time 1.172e-06/0.4837, allocations: 0 / 409.2 MB, free: 15.38 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03664/0.5204, allocations: 2.317 MB / 411.5 MB, free: 13.14 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.01/12.53, allocations: 12.05 kB / 411.5 MB, free: 13.13 MB / 334.1 MB (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Blocks_Examples_InverseModel_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Blocks_Examples_InverseModel.fmu > Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/InverseModel/InverseModel.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,firstOrder1.y,firstOrder2.y Variables in the result:criticalDamping.f,criticalDamping.initType,criticalDamping.n,criticalDamping.normalized,criticalDamping.u,criticalDamping.x[1],criticalDamping.x_start[1],criticalDamping.y,criticalDamping.y_start,der(firstOrder1.y),der(firstOrder2.y),feedback.u1,feedback.u2,feedback.y,firstOrder1.T,firstOrder1.initType,firstOrder1.k,firstOrder1.u,firstOrder1.y,firstOrder1.y_start,firstOrder2.T,firstOrder2.initType,firstOrder2.k,firstOrder2.u,firstOrder2.y,firstOrder2.y_start,inverseBlockConstraints.u1,inverseBlockConstraints.u2,inverseBlockConstraints.y1,inverseBlockConstraints.y2,sine.amplitude,sine.f,sine.offset,sine.phase,sine.startTime,sine.y,time