Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Blocks.LimResetIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator") translateModel(ModelicaTest.Blocks.LimResetIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001075/0.001075, allocations: 114.7 kB / 18.4 MB, free: 4.617 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001176/0.001176, allocations: 200.6 kB / 19.34 MB, free: 3.676 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.315/1.315, allocations: 227.4 MB / 247.5 MB, free: 10.36 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2088/0.2088, allocations: 46.1 MB / 344.9 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001361/0.001361, allocations: 79.36 kB / 419 MB, free: 19.03 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1141/0.1155, allocations: 62.45 MB / 481.5 MB, free: 4.543 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.003185/0.1187, allocations: 1.622 MB / 483.1 MB, free: 2.91 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001024/0.1198, allocations: 0.5882 MB / 483.7 MB, free: 2.316 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.171e-05/0.1199, allocations: 7.938 kB / 483.7 MB, free: 2.309 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001218/0.12, allocations: 7.875 kB / 483.7 MB, free: 2.301 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.725e-05/0.1201, allocations: 15.8 kB / 483.7 MB, free: 2.285 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003713/0.1205, allocations: 95.75 kB / 483.8 MB, free: 2.191 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001607/0.1207, allocations: 111.8 kB / 483.9 MB, free: 2.082 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001355/0.1208, allocations: 31.95 kB / 483.9 MB, free: 2.051 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.524e-05/0.1209, allocations: 43.84 kB / 484 MB, free: 2.008 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.324e-05/0.121, allocations: 43.72 kB / 484 MB, free: 1.965 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.262e-05/0.121, allocations: 8 kB / 484 MB, free: 1.957 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.622e-05/0.121, allocations: 8 kB / 484 MB, free: 1.949 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.03e-05/0.1211, allocations: 23.92 kB / 484.1 MB, free: 1.926 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.392e-05/0.1211, allocations: 43.78 kB / 484.1 MB, free: 1.883 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001479/0.1213, allocations: 91.62 kB / 484.2 MB, free: 1.793 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.731e-06/0.1213, allocations: 0 / 484.2 MB, free: 1.793 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.754e-06/0.1213, allocations: 3.938 kB / 484.2 MB, free: 1.789 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.45e-06/0.1213, allocations: 0 / 484.2 MB, free: 1.789 MB / 350.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.0006406/0.122, allocations: 407.2 kB / 484.6 MB, free: 1.344 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.754e-05/0.122, allocations: 12.03 kB / 484.6 MB, free: 1.332 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.157e-05/0.122, allocations: 8.844 kB / 484.6 MB, free: 1.324 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002967/0.1223, allocations: 208 kB / 484.8 MB, free: 1.082 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.191e-05/0.1224, allocations: 8.375 kB / 484.8 MB, free: 1.074 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.552e-05/0.1224, allocations: 8.375 kB / 484.8 MB, free: 1.066 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002705/0.1227, allocations: 109.9 kB / 484.9 MB, free: 0.9531 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.695e-06/0.1227, allocations: 4 kB / 484.9 MB, free: 0.9492 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.284e-05/0.1227, allocations: 0 / 484.9 MB, free: 0.9492 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.59e-06/0.1227, allocations: 0 / 484.9 MB, free: 0.9492 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001556/0.1229, allocations: 55.91 kB / 485 MB, free: 0.8945 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006467/0.1235, allocations: 392.4 kB / 485.4 MB, free: 472 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003138/0.1239, allocations: 102.5 kB / 485.5 MB, free: 360 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001036/0.124, allocations: 32.92 kB / 485.5 MB, free: 324 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.43e-05/0.124, allocations: 0 / 485.5 MB, free: 324 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002201/0.1242, allocations: 99.34 kB / 485.6 MB, free: 212 kB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 1.362e-06/0.1242, allocations: 4 kB / 485.6 MB, free: 208 kB / 350.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004442/0.1247, allocations: 137.5 kB / 485.7 MB, free: 64 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.091e-05/0.1248, allocations: 55.34 kB / 485.8 MB, free: 16 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001378/0.1249, allocations: 153.4 kB / 485.9 MB, free: 15.84 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.136e-05/0.1249, allocations: 29.7 kB / 486 MB, free: 15.8 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.772e-05/0.125, allocations: 108 kB / 486.1 MB, free: 15.7 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.944e-05/0.125, allocations: 11.81 kB / 486.1 MB, free: 15.68 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.64e-05/0.1251, allocations: 29.7 kB / 486.1 MB, free: 15.65 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001127/0.1252, allocations: 326.8 kB / 486.4 MB, free: 15.32 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001112/0.1253, allocations: 27.98 kB / 486.5 MB, free: 15.29 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001215/0.1255, allocations: 53.69 kB / 486.5 MB, free: 15.23 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001908/0.1256, allocations: 77.61 kB / 486.6 MB, free: 15.15 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.365e-06/0.1257, allocations: 4 kB / 486.6 MB, free: 15.15 MB / 366.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002618/0.1259, allocations: 117.5 kB / 486.7 MB, free: 15.03 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.54e-05/0.126, allocations: 7.938 kB / 486.7 MB, free: 15.02 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.933e-06/0.126, allocations: 0 / 486.7 MB, free: 15.02 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.326e-05/0.126, allocations: 7.938 kB / 486.7 MB, free: 15.01 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001033/0.1261, allocations: 20.02 kB / 486.7 MB, free: 14.99 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.414e-06/0.1261, allocations: 4.25 kB / 486.8 MB, free: 14.99 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.207e-05/0.1262, allocations: 23.97 kB / 486.8 MB, free: 14.96 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.536e-06/0.1262, allocations: 4 kB / 486.8 MB, free: 14.96 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,change.u,$PRE.change.u,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,integrator.reset,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 10 * 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.244e-05/0.1263, allocations: 120.5 kB / 486.9 MB, free: 14.84 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.85e-05/0.1264, allocations: 11.84 kB / 486.9 MB, free: 14.82 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.864e-05/0.1264, allocations: 20.7 kB / 486.9 MB, free: 14.8 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.575e-06/0.1264, allocations: 4 kB / 486.9 MB, free: 14.8 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.569e-06/0.1264, allocations: 0 / 486.9 MB, free: 14.8 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.457e-06/0.1264, allocations: 0 / 486.9 MB, free: 14.8 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004975/0.1269, allocations: 394.4 kB / 487.3 MB, free: 14.36 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.1269, allocations: 288 / 487.3 MB, free: 14.36 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.198e-05/0.127, allocations: 19.98 kB / 487.3 MB, free: 14.34 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.405e-06/0.127, allocations: 0 / 487.3 MB, free: 14.34 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.073e-05/0.1271, allocations: 3.938 kB / 487.3 MB, free: 14.34 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.723e-06/0.1271, allocations: 0 / 487.3 MB, free: 14.34 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.1271, allocations: 4 kB / 487.3 MB, free: 14.33 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000427/0.1275, allocations: 255.2 kB / 487.6 MB, free: 14.07 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.568e-05/0.1276, allocations: 85.05 kB / 487.7 MB, free: 13.96 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.901e-05/0.1276, allocations: 3.938 kB / 487.7 MB, free: 13.96 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001286/0.1277, allocations: 23.97 kB / 487.7 MB, free: 13.94 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.271e-05/0.1278, allocations: 7.984 kB / 487.7 MB, free: 13.93 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.028e-05/0.1278, allocations: 8 kB / 487.7 MB, free: 13.92 MB / 366.1 MB Notification: Performance of sorting global known variables: time 7.598e-05/0.1279, allocations: 111.3 kB / 487.8 MB, free: 13.81 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1279, allocations: 0 / 487.8 MB, free: 13.81 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002259/0.1281, allocations: 20 kB / 487.8 MB, free: 13.79 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (integrator.y) * Number of discrete variables: 5 (integrator.reset,$whenCondition2,$whenCondition1,booleanPulse.pulseStart,change.u) * Number of discrete states: 1 (change.u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0001041/0.1282, allocations: 91.25 kB / 487.9 MB, free: 13.7 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003061/0.1285, allocations: 87.83 kB / 488 MB, free: 13.61 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.1285, allocations: 0 / 488 MB, free: 13.61 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001287/0.1287, allocations: 43.97 kB / 488.1 MB, free: 13.57 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003107/0.129, allocations: 23.34 kB / 488.1 MB, free: 13.55 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008849/0.1299, allocations: 278.4 kB / 488.4 MB, free: 13.25 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002768/0.1302, allocations: 0.6971 MB / 489.1 MB, free: 12.53 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 4.581e-05/0.1302, allocations: 16.55 kB / 489.1 MB, free: 12.51 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.904e-05/0.1303, allocations: 11.44 kB / 489.1 MB, free: 12.5 MB / 366.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1303, allocations: 3.938 kB / 489.1 MB, free: 12.5 MB / 366.1 MB Notification: Performance of Templates: time 0.003801/0.1341, allocations: 1.233 MB / 490.3 MB, free: 11.27 MB / 366.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.sim & ./ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/LimResetIntegrator/LimResetIntegrator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches