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: translateModel(Modelica.Blocks.Examples.InverseModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|firstOrder1.y|firstOrder2.y",fileNamePrefix="Modelica_3.2.3_Modelica.Blocks.Examples.InverseModel") translateModel(Modelica.Blocks.Examples.InverseModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|firstOrder1.y|firstOrder2.y",fileNamePrefix="Modelica_3.2.3_Modelica.Blocks.Examples.InverseModel") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001066/0.001066, allocations: 108.4 kB / 18.4 MB, free: 4.699 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.001071/0.001071, allocations: 186.2 kB / 19.34 MB, free: 3.777 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.243/1.243, allocations: 205.1 MB / 225.2 MB, free: 12.23 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.001158/0.001158, allocations: 47.94 kB / 329.2 MB, free: 3.332 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07236/0.07353, allocations: 46.61 MB / 375.8 MB, free: 4.609 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.InverseModel): time 0.002568/0.07613, allocations: 1.684 MB / 377.5 MB, free: 2.91 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008679/0.07702, allocations: 0.5267 MB / 378 MB, free: 2.375 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.169e-05/0.07712, allocations: 4 kB / 378 MB, free: 2.371 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001/0.07724, allocations: 11.86 kB / 378 MB, free: 2.359 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001612/0.07741, allocations: 23.8 kB / 378.1 MB, free: 2.336 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001673/0.07758, allocations: 47.88 kB / 378.1 MB, free: 2.289 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001716/0.07776, allocations: 103.7 kB / 378.2 MB, free: 2.188 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001081/0.07788, allocations: 33.09 kB / 378.2 MB, free: 2.156 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.755e-05/0.07798, allocations: 39.86 kB / 378.3 MB, free: 2.117 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.947e-05/0.07807, allocations: 47.7 kB / 378.3 MB, free: 2.07 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.316e-05/0.0781, allocations: 8 kB / 378.3 MB, free: 2.062 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.627e-05/0.07813, allocations: 4 kB / 378.3 MB, free: 2.059 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.337e-05/0.07819, allocations: 19.92 kB / 378.3 MB, free: 2.039 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 5.148e-05/0.07825, allocations: 43.73 kB / 378.4 MB, free: 1.996 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001272/0.07838, allocations: 87.58 kB / 378.5 MB, free: 1.91 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.387e-06/0.07839, allocations: 0 / 378.5 MB, free: 1.91 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.0784, allocations: 4 kB / 378.5 MB, free: 1.906 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.308e-06/0.07841, allocations: 0 / 378.5 MB, free: 1.906 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.0005301/0.07895, allocations: 411 kB / 378.9 MB, free: 1.457 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.236e-05/0.079, allocations: 8.031 kB / 378.9 MB, free: 1.449 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.792e-05/0.07904, allocations: 12.84 kB / 378.9 MB, free: 1.438 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002347/0.07928, allocations: 200.7 kB / 379.1 MB, free: 1.203 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.322e-05/0.0793, allocations: 12.38 kB / 379.1 MB, free: 1.191 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.05e-05/0.07934, allocations: 8.125 kB / 379.1 MB, free: 1.184 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001818/0.07953, allocations: 81.59 kB / 379.2 MB, free: 1.098 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.674e-06/0.07954, allocations: 0 / 379.2 MB, free: 1.098 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.099e-05/0.07956, allocations: 4 kB / 379.2 MB, free: 1.094 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.549e-06/0.07957, allocations: 0 / 379.2 MB, free: 1.094 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001194/0.07969, allocations: 47.91 kB / 379.2 MB, free: 1.047 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005216/0.08022, allocations: 403.9 kB / 379.6 MB, free: 0.5898 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00014/0.08038, allocations: 62.58 kB / 379.7 MB, free: 0.5195 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.661e-05/0.08045, allocations: 32.83 kB / 379.7 MB, free: 496 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.597e-05/0.08048, allocations: 0 / 379.7 MB, free: 496 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.188e-05/0.08051, allocations: 38.5 kB / 379.8 MB, free: 448 kB / 318.1 MB Notification: Performance of pre-optimization done (n=5): time 1.032e-06/0.08052, allocations: 4 kB / 379.8 MB, free: 444 kB / 318.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002753/0.0808, allocations: 93.52 kB / 379.9 MB, free: 344 kB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.394e-05/0.08083, allocations: 51.41 kB / 379.9 MB, free: 280 kB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001208/0.08096, allocations: 149.8 kB / 380.1 MB, free: 120 kB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.199e-05/0.08098, allocations: 29.64 kB / 380.1 MB, free: 84 kB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.1446/0.2256, allocations: 106 kB / 380.2 MB, free: 13.14 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.952e-05/0.2256, allocations: 22.14 kB / 380.2 MB, free: 13.14 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.66e-05/0.2257, allocations: 19.61 kB / 380.2 MB, free: 13.13 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.615e-05/0.2257, allocations: 320.4 kB / 380.6 MB, free: 12.82 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.858e-05/0.2258, allocations: 18.78 kB / 380.6 MB, free: 12.82 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.557e-05/0.2259, allocations: 24.5 kB / 380.6 MB, free: 12.82 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001137/0.226, allocations: 47.03 kB / 380.6 MB, free: 12.81 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.494e-06/0.226, allocations: 0 / 380.6 MB, free: 12.81 MB / 318.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001805/0.2262, allocations: 94.59 kB / 380.7 MB, free: 12.78 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.552e-05/0.2262, allocations: 6.312 kB / 380.7 MB, free: 12.78 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.26e-06/0.2262, allocations: 1 kB / 380.7 MB, free: 12.78 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.675e-05/0.2263, allocations: 1.5 kB / 380.7 MB, free: 12.78 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002262/0.2265, allocations: 39.47 kB / 380.8 MB, free: 12.78 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.643e-06/0.2265, allocations: 2.156 kB / 380.8 MB, free: 12.78 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.254e-05/0.2266, allocations: 5.047 kB / 380.8 MB, free: 12.78 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.538e-06/0.2266, allocations: 2.859 kB / 380.8 MB, free: 12.78 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 6.549e-05/0.2267, allocations: 120.6 kB / 380.9 MB, free: 12.66 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.381e-05/0.2267, allocations: 13.66 kB / 380.9 MB, free: 12.66 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.967e-05/0.2267, allocations: 11.95 kB / 380.9 MB, free: 12.66 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.417e-06/0.2268, allocations: 3.938 kB / 380.9 MB, free: 12.65 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.2268, allocations: 0.8438 kB / 380.9 MB, free: 12.65 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.658e-05/0.2268, allocations: 84.56 kB / 381 MB, free: 12.55 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.984e-05/0.2268, allocations: 4.75 kB / 381 MB, free: 12.55 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.973e-05/0.2269, allocations: 2.312 kB / 381 MB, free: 12.55 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.523e-05/0.227, allocations: 7.062 kB / 381 MB, free: 12.55 MB / 318.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0003573/0.2273, allocations: 179 kB / 381.2 MB, free: 12.45 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0002501/0.2276, allocations: 281.6 kB / 381.5 MB, free: 12.24 MB / 318.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 6.34e-05/0.2277, allocations: 26.25 kB / 381.5 MB, free: 12.24 MB / 318.1 MB Notification: Performance of sorting global known variables: time 5.554e-05/0.2277, allocations: 108.3 kB / 381.6 MB, free: 12.16 MB / 318.1 MB Notification: Performance of Backend: time 4.81e-07/0.2277, allocations: 1.219 kB / 381.6 MB, free: 12.16 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003609/0.2281, allocations: 107.6 kB / 381.7 MB, free: 12.1 MB / 318.1 MB Notification: Performance of SimCode: time 0.0005263/0.2286, allocations: 0.6988 MB / 382.4 MB, free: 11.46 MB / 318.1 MB Notification: Performance of Templates: time 0.003449/0.2321, allocations: 1.052 MB / 383.5 MB, free: 11.4 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Blocks.Examples.InverseModel.makefile (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 & ./Modelica_3.2.3_Modelica.Blocks.Examples.InverseModel -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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","/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