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: translateModel(Modelica.Blocks.Examples.InverseModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|firstOrder1.y|firstOrder2.y",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel") translateModel(Modelica.Blocks.Examples.InverseModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|firstOrder1.y|firstOrder2.y",fileNamePrefix="Modelica_4.0.0_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.001636/0.001636, allocations: 109.6 kB / 17.68 MB, free: 5.332 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.001599/0.001599, allocations: 192 kB / 18.62 MB, free: 4.41 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.4/1.4, allocations: 222.9 MB / 242.3 MB, free: 15.13 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001062/0.001063, allocations: 55.39 kB / 302 MB, free: 5.16 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1105/0.1116, allocations: 49.45 MB / 351.5 MB, free: 3.691 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.InverseModel): time 0.00366/0.1153, allocations: 1.672 MB / 353.2 MB, free: 1.996 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009138/0.1162, allocations: 492.2 kB / 353.6 MB, free: 1.516 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001079/0.1164, allocations: 7.938 kB / 353.7 MB, free: 1.508 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001209/0.1165, allocations: 15.86 kB / 353.7 MB, free: 1.492 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002411/0.1168, allocations: 19.8 kB / 353.7 MB, free: 1.473 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000219/0.117, allocations: 43.94 kB / 353.7 MB, free: 1.43 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002183/0.1172, allocations: 99.69 kB / 353.8 MB, free: 1.332 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001476/0.1174, allocations: 32.95 kB / 353.9 MB, free: 1.301 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000132/0.1175, allocations: 47.8 kB / 353.9 MB, free: 1.254 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001093/0.1177, allocations: 47.77 kB / 354 MB, free: 1.207 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.242e-05/0.1177, allocations: 7.938 kB / 354 MB, free: 1.199 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.742e-05/0.1177, allocations: 8 kB / 354 MB, free: 1.191 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.299e-05/0.1178, allocations: 19.92 kB / 354 MB, free: 1.172 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.068e-05/0.1179, allocations: 39.73 kB / 354 MB, free: 1.133 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001643/0.118, allocations: 91.58 kB / 354.1 MB, free: 1.043 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.116e-06/0.118, allocations: 0 / 354.1 MB, free: 1.043 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.1181, allocations: 0 / 354.1 MB, free: 1.043 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.231e-06/0.1181, allocations: 0 / 354.1 MB, free: 1.043 MB / 286.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.0007544/0.1188, allocations: 407 kB / 354.5 MB, free: 0.5977 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.482e-05/0.1189, allocations: 8.031 kB / 354.5 MB, free: 0.5898 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.867e-05/0.1189, allocations: 16.75 kB / 354.5 MB, free: 0.5742 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003658/0.1193, allocations: 200.7 kB / 354.7 MB, free: 348 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.819e-05/0.1193, allocations: 7.938 kB / 354.7 MB, free: 340 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.901e-05/0.1194, allocations: 15.89 kB / 354.8 MB, free: 324 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002112/0.1196, allocations: 77.67 kB / 354.8 MB, free: 240 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.324e-05/0.1196, allocations: 0 / 354.8 MB, free: 240 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.575e-05/0.1197, allocations: 7.938 kB / 354.8 MB, free: 232 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.351e-06/0.1197, allocations: 0 / 354.8 MB, free: 232 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000129/0.1198, allocations: 50.3 kB / 354.9 MB, free: 184 kB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006744/0.1205, allocations: 404 kB / 355.3 MB, free: 15.72 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001537/0.1207, allocations: 70.5 kB / 355.4 MB, free: 15.64 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.177e-05/0.1207, allocations: 28.89 kB / 355.4 MB, free: 15.61 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.958e-05/0.1208, allocations: 0 / 355.4 MB, free: 15.61 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.784e-05/0.1208, allocations: 42.5 kB / 355.4 MB, free: 15.56 MB / 302.1 MB Notification: Performance of pre-optimization done (n=5): time 1.032e-06/0.1208, allocations: 0 / 355.4 MB, free: 15.56 MB / 302.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002822/0.1211, allocations: 89.58 kB / 355.5 MB, free: 15.46 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.268e-05/0.1211, allocations: 59.34 kB / 355.6 MB, free: 15.39 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001305/0.1213, allocations: 143.3 kB / 355.7 MB, free: 15.25 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.6e-05/0.1213, allocations: 25.7 kB / 355.7 MB, free: 15.21 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.118e-05/0.1214, allocations: 116.1 kB / 355.8 MB, free: 15.1 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.214e-05/0.1214, allocations: 11.72 kB / 355.9 MB, free: 15.09 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.951e-05/0.1214, allocations: 21.7 kB / 355.9 MB, free: 15.06 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001113/0.1216, allocations: 322.8 kB / 356.2 MB, free: 14.73 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.945e-05/0.1216, allocations: 24 kB / 356.2 MB, free: 14.71 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.689e-05/0.1217, allocations: 19.98 kB / 356.2 MB, free: 14.69 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001091/0.1218, allocations: 44.84 kB / 356.3 MB, free: 14.64 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.943e-06/0.1218, allocations: 0 / 356.3 MB, free: 14.64 MB / 302.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001573/0.122, allocations: 101.5 kB / 356.4 MB, free: 14.54 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.482e-05/0.122, allocations: 4 kB / 356.4 MB, free: 14.54 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.709e-06/0.122, allocations: 0 / 356.4 MB, free: 14.54 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.308e-05/0.122, allocations: 0 / 356.4 MB, free: 14.54 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002212/0.1222, allocations: 47.97 kB / 356.4 MB, free: 14.49 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.019e-06/0.1223, allocations: 0 / 356.4 MB, free: 14.49 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.254e-05/0.1223, allocations: 3.938 kB / 356.4 MB, free: 14.49 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.027e-05/0.1223, allocations: 4 kB / 356.4 MB, free: 14.48 MB / 302.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 9.339e-05/0.1224, allocations: 125.7 kB / 356.6 MB, free: 14.35 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.951e-05/0.1225, allocations: 7.906 kB / 356.6 MB, free: 14.34 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.035e-05/0.1225, allocations: 12.56 kB / 356.6 MB, free: 14.33 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.944e-06/0.1225, allocations: 0 / 356.6 MB, free: 14.33 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.962e-05/0.1225, allocations: 4 kB / 356.6 MB, free: 14.32 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.817e-06/0.1225, allocations: 4 kB / 356.6 MB, free: 14.32 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001984/0.1228, allocations: 197.6 kB / 356.8 MB, free: 14.08 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.1228, allocations: 3.938 kB / 356.8 MB, free: 14.07 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001456/0.1229, allocations: 27.97 kB / 356.8 MB, free: 14.05 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.356e-06/0.1229, allocations: 0 / 356.8 MB, free: 14.05 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.908e-06/0.1229, allocations: 3.938 kB / 356.8 MB, free: 14.04 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.926e-06/0.1229, allocations: 4 kB / 356.8 MB, free: 14.04 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.12e-07/0.1229, allocations: 0 / 356.8 MB, free: 14.04 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002601/0.1232, allocations: 211.3 kB / 357 MB, free: 13.82 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.696e-05/0.1233, allocations: 81.02 kB / 357.1 MB, free: 13.72 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.788e-05/0.1233, allocations: 3.938 kB / 357.1 MB, free: 13.71 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.025e-05/0.1234, allocations: 4 kB / 357.1 MB, free: 13.71 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.258e-05/0.1234, allocations: 3.984 kB / 357.1 MB, free: 13.71 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.933e-06/0.1234, allocations: 4 kB / 357.1 MB, free: 13.7 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.883e-05/0.1235, allocations: 109 kB / 357.2 MB, free: 13.6 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1235, allocations: 0 / 357.2 MB, free: 13.6 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002273/0.1238, allocations: 16.06 kB / 357.2 MB, free: 13.58 MB / 302.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.0001073/0.1239, allocations: 95.23 kB / 357.3 MB, free: 13.48 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001686/0.124, allocations: 51.92 kB / 357.4 MB, free: 13.43 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.1241, allocations: 0 / 357.4 MB, free: 13.43 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 5.885e-05/0.1241, allocations: 23.98 kB / 357.4 MB, free: 13.41 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003228/0.1245, allocations: 23.92 kB / 357.4 MB, free: 13.38 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006893/0.1252, allocations: 265.4 kB / 357.7 MB, free: 13.1 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003024/0.1255, allocations: 0.7002 MB / 358.4 MB, free: 12.37 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.895e-05/0.1255, allocations: 12.17 kB / 358.4 MB, free: 12.36 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.709e-05/0.1256, allocations: 11.44 kB / 358.4 MB, free: 12.35 MB / 302.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1256, allocations: 8 kB / 358.4 MB, free: 12.34 MB / 302.1 MB Notification: Performance of Templates: time 0.003495/0.1291, allocations: 0.8815 MB / 359.3 MB, free: 11.46 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel.makefile (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 & ./Modelica_4.0.0_Modelica.Blocks.Examples.InverseModel -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > 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) Reference file matches