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.001046/0.001046, allocations: 95.36 kB / 17.3 MB, free: 6.344 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.00123/0.00123, allocations: 178 kB / 18.21 MB, free: 5.531 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.69/1.69, allocations: 205.4 MB / 224.4 MB, free: 13.07 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.0004966/0.0004968, allocations: 12 kB / 281.4 MB, free: 3.43 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1211/0.1216, allocations: 47.58 MB / 329 MB, free: 3.766 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.InverseModel): time 0.001987/0.1236, allocations: 1.384 MB / 330.3 MB, free: 2.367 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008473/0.1245, allocations: 0.5114 MB / 330.9 MB, free: 1.848 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.177e-05/0.1246, allocations: 8 kB / 330.9 MB, free: 1.84 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 9.647e-05/0.1247, allocations: 7.922 kB / 330.9 MB, free: 1.832 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000193/0.1249, allocations: 19.86 kB / 330.9 MB, free: 1.812 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001745/0.1251, allocations: 43.88 kB / 330.9 MB, free: 1.77 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001788/0.1253, allocations: 91.7 kB / 331 MB, free: 1.68 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001241/0.1254, allocations: 29.11 kB / 331 MB, free: 1.652 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.819e-05/0.1255, allocations: 35.84 kB / 331.1 MB, free: 1.617 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.029e-05/0.1256, allocations: 39.72 kB / 331.1 MB, free: 1.578 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 2.226e-05/0.1257, allocations: 4 kB / 331.1 MB, free: 1.574 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.572e-05/0.1257, allocations: 0 / 331.1 MB, free: 1.574 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 6.695e-05/0.1257, allocations: 11.94 kB / 331.1 MB, free: 1.562 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001303/0.1259, allocations: 65.44 kB / 331.2 MB, free: 1.492 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001186/0.126, allocations: 79.91 kB / 331.3 MB, free: 1.414 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.126, allocations: 0 / 331.3 MB, free: 1.414 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.126, allocations: 0 / 331.3 MB, free: 1.414 MB / 270.1 MB Notification: Performance of Transformations before backend: time 4.739e-06/0.126, allocations: 0 / 331.3 MB, free: 1.414 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.0005581/0.1266, allocations: 403.1 kB / 331.7 MB, free: 0.9727 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.051e-05/0.1267, allocations: 8.031 kB / 331.7 MB, free: 0.9648 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.584e-05/0.1267, allocations: 16.75 kB / 331.7 MB, free: 0.9492 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002324/0.1269, allocations: 204.6 kB / 331.9 MB, free: 0.7109 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.325e-05/0.127, allocations: 384 / 331.9 MB, free: 0.7109 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.905e-05/0.127, allocations: 16.12 kB / 331.9 MB, free: 0.6953 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001969/0.1272, allocations: 81.66 kB / 332 MB, free: 0.6094 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.989e-06/0.1272, allocations: 0 / 332 MB, free: 0.6094 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.174e-05/0.1273, allocations: 0 / 332 MB, free: 0.6094 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.24e-06/0.1273, allocations: 4 kB / 332 MB, free: 0.6055 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001796/0.1275, allocations: 55.89 kB / 332.1 MB, free: 0.5508 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006389/0.1281, allocations: 404 kB / 332.4 MB, free: 96 kB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001933/0.1283, allocations: 62.59 kB / 332.5 MB, free: 24 kB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.528e-05/0.1284, allocations: 32.83 kB / 332.5 MB, free: 15.99 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.287e-05/0.1284, allocations: 4 kB / 332.5 MB, free: 15.98 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.251e-05/0.1285, allocations: 34.56 kB / 332.6 MB, free: 15.94 MB / 286.1 MB Notification: Performance of pre-optimization done (n=5): time 1.232e-06/0.1285, allocations: 0 / 332.6 MB, free: 15.94 MB / 286.1 MB Notification: Performance of matching and sorting (n=5): time 0.0003191/0.1288, allocations: 109.4 kB / 332.7 MB, free: 15.83 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.747e-05/0.1289, allocations: 51.41 kB / 332.7 MB, free: 15.77 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000125/0.129, allocations: 145.8 kB / 332.9 MB, free: 15.61 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.731e-05/0.129, allocations: 29.7 kB / 332.9 MB, free: 15.58 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.326e-05/0.1291, allocations: 108.1 kB / 333 MB, free: 15.47 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.56e-05/0.1291, allocations: 19.7 kB / 333 MB, free: 15.45 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.769e-05/0.1292, allocations: 17.72 kB / 333 MB, free: 15.43 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.000137/0.1293, allocations: 318.8 kB / 333.4 MB, free: 15.11 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.089e-05/0.1294, allocations: 19.98 kB / 333.4 MB, free: 15.09 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.852e-05/0.1294, allocations: 31.98 kB / 333.4 MB, free: 15.05 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001177/0.1296, allocations: 44.84 kB / 333.5 MB, free: 15.01 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.1296, allocations: 0 / 333.5 MB, free: 15.01 MB / 286.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001839/0.1298, allocations: 101.5 kB / 333.6 MB, free: 14.9 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.561e-05/0.1298, allocations: 6.656 kB / 333.6 MB, free: 14.9 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.669e-06/0.1298, allocations: 0 / 333.6 MB, free: 14.9 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.375e-05/0.1298, allocations: 4 kB / 333.6 MB, free: 14.89 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002252/0.13, allocations: 39.97 kB / 333.6 MB, free: 14.86 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.661e-06/0.1301, allocations: 3.938 kB / 333.6 MB, free: 14.85 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.796e-05/0.1301, allocations: 12.19 kB / 333.6 MB, free: 14.84 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.042e-05/0.1301, allocations: 3.984 kB / 333.6 MB, free: 14.84 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.896e-05/0.1302, allocations: 113.8 kB / 333.7 MB, free: 14.71 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.206e-05/0.1303, allocations: 15.84 kB / 333.7 MB, free: 14.7 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.528e-05/0.1303, allocations: 16.31 kB / 333.8 MB, free: 14.68 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.004e-06/0.1303, allocations: 0 / 333.8 MB, free: 14.68 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.961e-06/0.1303, allocations: 0 / 333.8 MB, free: 14.68 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.857e-06/0.1304, allocations: 0 / 333.8 MB, free: 14.68 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002091/0.1306, allocations: 197.5 kB / 334 MB, free: 14.44 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.153e-06/0.1306, allocations: 0 / 334 MB, free: 14.44 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001425/0.1307, allocations: 35.84 kB / 334 MB, free: 14.4 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.194e-06/0.1307, allocations: 0 / 334 MB, free: 14.4 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.023e-05/0.1308, allocations: 0 / 334 MB, free: 14.4 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.182e-06/0.1308, allocations: 0 / 334 MB, free: 14.4 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.1308, allocations: 0 / 334 MB, free: 14.4 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003262/0.1311, allocations: 211.4 kB / 334.2 MB, free: 14.18 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.295e-05/0.1312, allocations: 84.95 kB / 334.3 MB, free: 14.08 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.179e-05/0.1312, allocations: 8.031 kB / 334.3 MB, free: 14.07 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.996e-05/0.1313, allocations: 3.984 kB / 334.3 MB, free: 14.07 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.492e-05/0.1313, allocations: 8.062 kB / 334.3 MB, free: 14.06 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.469e-06/0.1313, allocations: 3.938 kB / 334.3 MB, free: 14.05 MB / 286.1 MB Notification: Performance of sorting global known variables: time 8.176e-05/0.1314, allocations: 111.9 kB / 334.4 MB, free: 13.95 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1314, allocations: 0 / 334.4 MB, free: 13.95 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002233/0.1317, allocations: 16 kB / 334.4 MB, free: 13.93 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.0001235/0.1318, allocations: 103.1 kB / 334.5 MB, free: 13.82 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0001996/0.132, allocations: 56.2 kB / 334.6 MB, free: 13.77 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.132, allocations: 0 / 334.6 MB, free: 13.77 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 6.657e-05/0.1321, allocations: 20 kB / 334.6 MB, free: 13.75 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003948/0.1325, allocations: 35.83 kB / 334.6 MB, free: 13.71 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006222/0.1331, allocations: 311.5 kB / 334.9 MB, free: 13.38 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002761/0.1334, allocations: 0.7043 MB / 335.6 MB, free: 12.65 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 4.717e-05/0.1335, allocations: 15.97 kB / 335.7 MB, free: 12.63 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.219e-05/0.1335, allocations: 11.44 kB / 335.7 MB, free: 12.62 MB / 286.1 MB Notification: Performance of SimCode: time 3.71e-07/0.1335, allocations: 0 / 335.7 MB, free: 12.62 MB / 286.1 MB Notification: Performance of Templates: time 0.003403/0.1369, allocations: 0.8154 MB / 336.5 MB, free: 11.81 MB / 286.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/jenkins/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