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.001189/0.001189, allocations: 102.9 kB / 17.16 MB, free: 6.316 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.001173/0.001173, allocations: 190 kB / 18.07 MB, free: 5.414 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.188/1.188, allocations: 205.1 MB / 223.9 MB, free: 12.39 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.001045/0.001045, allocations: 59.91 kB / 280.1 MB, free: 3.473 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07123/0.07228, allocations: 46.61 MB / 326.7 MB, free: 4.797 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.InverseModel): time 0.002448/0.07477, allocations: 1.726 MB / 328.4 MB, free: 3.051 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006996/0.07548, allocations: 0.5317 MB / 328.9 MB, free: 2.512 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.45e-05/0.07557, allocations: 0 / 328.9 MB, free: 2.512 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 8.947e-05/0.07566, allocations: 7.922 kB / 328.9 MB, free: 2.504 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001407/0.07582, allocations: 15.88 kB / 329 MB, free: 2.488 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000137/0.07596, allocations: 47.88 kB / 329 MB, free: 2.441 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001317/0.0761, allocations: 95.64 kB / 329.1 MB, free: 2.348 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.552e-05/0.07621, allocations: 37.09 kB / 329.1 MB, free: 2.312 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.385e-05/0.07629, allocations: 39.73 kB / 329.2 MB, free: 2.273 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.242e-05/0.07637, allocations: 39.78 kB / 329.2 MB, free: 2.234 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 1.98e-05/0.07639, allocations: 4 kB / 329.2 MB, free: 2.23 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.56e-05/0.07642, allocations: 4 kB / 329.2 MB, free: 2.227 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 5.248e-05/0.07647, allocations: 23.91 kB / 329.2 MB, free: 2.203 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 4.454e-05/0.07652, allocations: 35.73 kB / 329.3 MB, free: 2.168 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 9.46e-05/0.07662, allocations: 83.92 kB / 329.4 MB, free: 2.086 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.276e-06/0.07663, allocations: 4 kB / 329.4 MB, free: 2.082 MB / 270.1 MB Notification: Performance of FrontEnd: time 6.81e-07/0.07664, allocations: 0 / 329.4 MB, free: 2.082 MB / 270.1 MB Notification: Performance of Transformations before backend: time 2.986e-06/0.07665, allocations: 0 / 329.4 MB, free: 2.082 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.0004711/0.07712, allocations: 403.1 kB / 329.8 MB, free: 1.641 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.522e-05/0.07716, allocations: 12.03 kB / 329.8 MB, free: 1.629 MB / 270.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.842e-05/0.0772, allocations: 38.69 kB / 329.8 MB, free: 1.582 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.134e-05/0.07723, allocations: 16.75 kB / 329.8 MB, free: 1.566 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001625/0.0774, allocations: 196.8 kB / 330 MB, free: 1.336 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.749e-06/0.07742, allocations: 8.375 kB / 330 MB, free: 1.328 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.942e-05/0.07745, allocations: 19.83 kB / 330 MB, free: 1.309 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001563/0.07761, allocations: 69.67 kB / 330.1 MB, free: 1.234 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.183e-06/0.07763, allocations: 3.938 kB / 330.1 MB, free: 1.23 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.798e-06/0.07764, allocations: 4 kB / 330.1 MB, free: 1.227 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.601e-06/0.07765, allocations: 4 kB / 330.1 MB, free: 1.223 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001085/0.07777, allocations: 39.91 kB / 330.2 MB, free: 1.184 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004663/0.07824, allocations: 412 kB / 330.6 MB, free: 0.7188 MB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001282/0.07838, allocations: 62.56 kB / 330.6 MB, free: 0.6484 MB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.253e-05/0.07845, allocations: 28.89 kB / 330.7 MB, free: 0.6172 MB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.478e-05/0.07848, allocations: 0 / 330.7 MB, free: 0.6172 MB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.082e-05/0.0785, allocations: 38.56 kB / 330.7 MB, free: 0.5703 MB / 270.1 MB Notification: Performance of pre-optimization done (n=5): time 8.22e-07/0.07851, allocations: 0 / 330.7 MB, free: 0.5703 MB / 270.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002517/0.07876, allocations: 101.6 kB / 330.8 MB, free: 476 kB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.892e-05/0.0788, allocations: 55.34 kB / 330.8 MB, free: 408 kB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.514e-05/0.0789, allocations: 145.8 kB / 331 MB, free: 252 kB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 1.274e-05/0.07892, allocations: 25.7 kB / 331 MB, free: 220 kB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.899e-05/0.07898, allocations: 112.1 kB / 331.1 MB, free: 104 kB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.114e-05/0.07901, allocations: 23.66 kB / 331.1 MB, free: 80 kB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.495e-05/0.07905, allocations: 21.7 kB / 331.2 MB, free: 52 kB / 270.1 MB Notification: Performance of setup shared object (initialization): time 9.262e-05/0.07914, allocations: 318.8 kB / 331.5 MB, free: 15.73 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.829e-05/0.07921, allocations: 23.98 kB / 331.5 MB, free: 15.71 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.669e-05/0.07926, allocations: 20.05 kB / 331.5 MB, free: 15.69 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001044/0.07937, allocations: 48.84 kB / 331.6 MB, free: 15.64 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.836e-06/0.07938, allocations: 0 / 331.6 MB, free: 15.64 MB / 286.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001504/0.07954, allocations: 105.5 kB / 331.7 MB, free: 15.53 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.57e-05/0.07957, allocations: 4 kB / 331.7 MB, free: 15.52 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.867e-06/0.07959, allocations: 0 / 331.7 MB, free: 15.52 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.117e-06/0.0796, allocations: 0 / 331.7 MB, free: 15.52 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002143/0.07982, allocations: 43.97 kB / 331.7 MB, free: 15.48 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.559e-06/0.07983, allocations: 0 / 331.7 MB, free: 15.48 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.05e-05/0.07989, allocations: 0 / 331.7 MB, free: 15.48 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.039e-05/0.0799, allocations: 4 kB / 331.7 MB, free: 15.48 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 7.168e-05/0.07998, allocations: 117.8 kB / 331.8 MB, free: 15.35 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.292e-05/0.08002, allocations: 15.83 kB / 331.9 MB, free: 15.34 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.73e-05/0.08005, allocations: 8.312 kB / 331.9 MB, free: 15.32 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.086e-06/0.08006, allocations: 7.938 kB / 331.9 MB, free: 15.32 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.166e-06/0.08007, allocations: 0 / 331.9 MB, free: 15.32 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.043e-06/0.08007, allocations: 0 / 331.9 MB, free: 15.32 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001733/0.08025, allocations: 197.6 kB / 332.1 MB, free: 15.07 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.235e-06/0.08026, allocations: 3.938 kB / 332.1 MB, free: 15.07 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001484/0.08041, allocations: 23.98 kB / 332.1 MB, free: 15.05 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.096e-06/0.08042, allocations: 3.984 kB / 332.1 MB, free: 15.04 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.328e-06/0.08044, allocations: 4 kB / 332.1 MB, free: 15.04 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.142e-06/0.08044, allocations: 0 / 332.1 MB, free: 15.04 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.08045, allocations: 4 kB / 332.1 MB, free: 15.04 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002474/0.0807, allocations: 195.3 kB / 332.3 MB, free: 14.83 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.911e-05/0.08075, allocations: 92.98 kB / 332.4 MB, free: 14.72 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.685e-05/0.08078, allocations: 0 / 332.4 MB, free: 14.72 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.699e-05/0.08087, allocations: 4 kB / 332.4 MB, free: 14.71 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.699e-05/0.0809, allocations: 15.92 kB / 332.4 MB, free: 14.7 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.8e-06/0.08091, allocations: 4 kB / 332.4 MB, free: 14.7 MB / 286.1 MB Notification: Performance of sorting global known variables: time 6.568e-05/0.08098, allocations: 108 kB / 332.5 MB, free: 14.59 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.08099, allocations: 0 / 332.5 MB, free: 14.59 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002214/0.08122, allocations: 19.94 kB / 332.5 MB, free: 14.57 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.0004469/0.08167, allocations: 0.7359 MB / 333.3 MB, free: 13.81 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0001438/0.08182, allocations: 51.92 kB / 333.3 MB, free: 13.76 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.08184, allocations: 0 / 333.3 MB, free: 13.76 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 5.657e-05/0.0819, allocations: 19.98 kB / 333.3 MB, free: 13.74 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003112/0.08221, allocations: 23.98 kB / 333.4 MB, free: 13.71 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001508/0.08373, allocations: 1.598 MB / 335 MB, free: 12.04 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002158/0.08396, allocations: 0.7043 MB / 335.7 MB, free: 11.31 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 4.401e-05/0.08401, allocations: 11.97 kB / 335.7 MB, free: 11.3 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.267e-05/0.08407, allocations: 23.55 kB / 335.7 MB, free: 11.27 MB / 286.1 MB Notification: Performance of SimCode: time 3.41e-07/0.08408, allocations: 3.938 kB / 335.7 MB, free: 11.27 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0111/0.09518, allocations: 2.07 MB / 337.8 MB, free: 9.176 MB / 286.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001492/0.09535, allocations: 186.7 kB / 338 MB, free: 8.918 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.615/1.711, allocations: 0 / 338 MB, free: 8.918 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Blocks.Examples.InverseModel_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Blocks_Examples_InverseModel_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 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.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/InverseModel/InverseModel.csv","../files/Modelica_3.2.3_Modelica.Blocks.Examples.InverseModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches