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.001482/0.001482, allocations: 104.4 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001743/0.001743, allocations: 216.5 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.625/1.625, allocations: 227.4 MB / 246.8 MB, free: 10.55 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2216/0.2216, allocations: 46.1 MB / 344.1 MB, free: 11.57 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001364/0.001364, allocations: 72.97 kB / 417.6 MB, free: 19.73 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.116/0.1174, allocations: 62.45 MB / 480 MB, free: 5.27 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.003395/0.1208, allocations: 1.631 MB / 481.6 MB, free: 3.625 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001126/0.122, allocations: 0.5883 MB / 482.2 MB, free: 3.031 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000117/0.1221, allocations: 0 / 482.2 MB, free: 3.031 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00012/0.1223, allocations: 11.81 kB / 482.2 MB, free: 3.02 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.784e-05/0.1223, allocations: 19.84 kB / 482.3 MB, free: 3 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003743/0.1227, allocations: 79.78 kB / 482.3 MB, free: 2.922 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001781/0.1229, allocations: 111.7 kB / 482.5 MB, free: 2.812 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001427/0.1231, allocations: 35.98 kB / 482.5 MB, free: 2.777 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.231e-05/0.1232, allocations: 43.84 kB / 482.5 MB, free: 2.734 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.544e-05/0.1233, allocations: 47.75 kB / 482.6 MB, free: 2.688 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.463e-05/0.1233, allocations: 8 kB / 482.6 MB, free: 2.68 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.786e-05/0.1233, allocations: 8 kB / 482.6 MB, free: 2.672 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.158e-05/0.1233, allocations: 19.92 kB / 482.6 MB, free: 2.652 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.628e-05/0.1234, allocations: 39.73 kB / 482.7 MB, free: 2.613 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001613/0.1236, allocations: 91.92 kB / 482.7 MB, free: 2.523 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.559e-06/0.1236, allocations: 0 / 482.7 MB, free: 2.523 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.1236, allocations: 0 / 482.7 MB, free: 2.523 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.482e-06/0.1236, allocations: 0 / 482.7 MB, free: 2.523 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.0006742/0.1243, allocations: 407.2 kB / 483.1 MB, free: 2.078 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.753e-05/0.1243, allocations: 12.03 kB / 483.1 MB, free: 2.066 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.239e-05/0.1244, allocations: 8.844 kB / 483.2 MB, free: 2.059 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002207/0.1246, allocations: 204.1 kB / 483.4 MB, free: 1.82 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.211e-05/0.1246, allocations: 8.375 kB / 483.4 MB, free: 1.812 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.533e-05/0.1247, allocations: 4.375 kB / 483.4 MB, free: 1.809 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002812/0.125, allocations: 113.8 kB / 483.5 MB, free: 1.691 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.937e-06/0.125, allocations: 0 / 483.5 MB, free: 1.691 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.72e-05/0.125, allocations: 7.938 kB / 483.5 MB, free: 1.684 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.153e-06/0.125, allocations: 4 kB / 483.5 MB, free: 1.68 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001656/0.1252, allocations: 51.97 kB / 483.5 MB, free: 1.629 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007339/0.1259, allocations: 396.3 kB / 483.9 MB, free: 1.191 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003518/0.1263, allocations: 94.52 kB / 484 MB, free: 1.09 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001216/0.1264, allocations: 40.92 kB / 484.1 MB, free: 1.047 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.322e-05/0.1264, allocations: 0 / 484.1 MB, free: 1.047 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003141/0.1268, allocations: 95.3 kB / 484.2 MB, free: 0.9414 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 1.473e-06/0.1268, allocations: 4 kB / 484.2 MB, free: 0.9375 MB / 350.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004825/0.1273, allocations: 145.7 kB / 484.3 MB, free: 0.7891 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.283e-05/0.1273, allocations: 59.34 kB / 484.4 MB, free: 0.7188 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001632/0.1275, allocations: 152.8 kB / 484.5 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.164e-05/0.1275, allocations: 25.7 kB / 484.5 MB, free: 0.5312 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.14e-05/0.1276, allocations: 108 kB / 484.6 MB, free: 432 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.032e-05/0.1277, allocations: 15.81 kB / 484.7 MB, free: 416 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.173e-05/0.1277, allocations: 25.7 kB / 484.7 MB, free: 384 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001357/0.1279, allocations: 318.8 kB / 485 MB, free: 56 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001314/0.128, allocations: 35.92 kB / 485 MB, free: 20 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001581/0.1282, allocations: 53.73 kB / 485.1 MB, free: 15.96 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000217/0.1284, allocations: 73.67 kB / 485.2 MB, free: 15.88 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.1284, allocations: 0 / 485.2 MB, free: 15.88 MB / 366.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0003224/0.1287, allocations: 125.6 kB / 485.3 MB, free: 15.75 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.388e-05/0.1288, allocations: 14.53 kB / 485.3 MB, free: 15.74 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.843e-06/0.1288, allocations: 3.938 kB / 485.3 MB, free: 15.73 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.484e-05/0.1288, allocations: 0 / 485.3 MB, free: 15.73 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001113/0.1289, allocations: 19.98 kB / 485.3 MB, free: 15.71 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.113e-06/0.1289, allocations: 4.031 kB / 485.3 MB, free: 15.71 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001009/0.129, allocations: 23.97 kB / 485.3 MB, free: 15.69 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.806e-06/0.1291, allocations: 4 kB / 485.3 MB, free: 15.68 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.861e-05/0.1292, allocations: 116.4 kB / 485.5 MB, free: 15.56 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.29e-05/0.1292, allocations: 15.84 kB / 485.5 MB, free: 15.55 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.037e-05/0.1292, allocations: 12.7 kB / 485.5 MB, free: 15.54 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.519e-06/0.1292, allocations: 4 kB / 485.5 MB, free: 15.53 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.821e-06/0.1293, allocations: 0 / 485.5 MB, free: 15.53 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.819e-06/0.1293, allocations: 4 kB / 485.5 MB, free: 15.53 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005261/0.1298, allocations: 390.4 kB / 485.9 MB, free: 15.09 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.445e-06/0.1298, allocations: 0 / 485.9 MB, free: 15.09 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.447e-05/0.1299, allocations: 15.98 kB / 485.9 MB, free: 15.07 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.705e-06/0.1299, allocations: 7.938 kB / 485.9 MB, free: 15.07 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.538e-06/0.1299, allocations: 0 / 485.9 MB, free: 15.07 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.106e-06/0.1299, allocations: 4 kB / 485.9 MB, free: 15.06 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.13, allocations: 0 / 485.9 MB, free: 15.06 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004795/0.1304, allocations: 259.1 kB / 486.2 MB, free: 14.79 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.272e-05/0.1305, allocations: 85.05 kB / 486.2 MB, free: 14.69 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.286e-05/0.1305, allocations: 0 / 486.2 MB, free: 14.69 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001418/0.1307, allocations: 19.97 kB / 486.3 MB, free: 14.67 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.219e-05/0.1307, allocations: 11.98 kB / 486.3 MB, free: 14.66 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.883e-06/0.1307, allocations: 4 kB / 486.3 MB, free: 14.66 MB / 366.1 MB Notification: Performance of sorting global known variables: time 9.833e-05/0.1308, allocations: 122.7 kB / 486.4 MB, free: 14.54 MB / 366.1 MB Notification: Performance of sort global known variables: time 4.11e-07/0.1308, allocations: 0 / 486.4 MB, free: 14.54 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002326/0.1311, allocations: 12 kB / 486.4 MB, free: 14.53 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.0001125/0.1312, allocations: 99.19 kB / 486.5 MB, free: 14.42 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003131/0.1315, allocations: 83.83 kB / 486.6 MB, free: 14.34 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.1315, allocations: 4.062 kB / 486.6 MB, free: 14.34 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001439/0.1317, allocations: 47.91 kB / 486.6 MB, free: 14.29 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003186/0.132, allocations: 15.98 kB / 486.6 MB, free: 14.27 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001049/0.1331, allocations: 282.5 kB / 486.9 MB, free: 13.97 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000354/0.1334, allocations: 0.701 MB / 487.6 MB, free: 13.25 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.351e-05/0.1335, allocations: 12.48 kB / 487.6 MB, free: 13.23 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.201e-05/0.1336, allocations: 15.44 kB / 487.7 MB, free: 13.22 MB / 366.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1336, allocations: 0 / 487.7 MB, free: 13.22 MB / 366.1 MB Notification: Performance of Templates: time 0.004674/0.1382, allocations: 1.232 MB / 488.9 MB, free: 12 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 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/LimResetIntegrator/LimResetIntegrator.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches