Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/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_4.1.0-beta.om_ModelicaTest.Blocks.LimResetIntegrator") translateModel(ModelicaTest.Blocks.LimResetIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.LimResetIntegrator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001664/0.001664, allocations: 102 kB / 17.2 MB, free: 6.293 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001842/0.001842, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.495/1.495, allocations: 227.4 MB / 246.3 MB, free: 10.81 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2303/0.2303, allocations: 46.12 MB / 343.7 MB, free: 11.79 MB / 286.1 MB Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002272/0.002272, allocations: 84.48 kB / 416.9 MB, free: 20.18 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.118/0.1203, allocations: 62.45 MB / 479.4 MB, free: 5.699 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.003259/0.1236, allocations: 1.696 MB / 481.1 MB, free: 3.988 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001088/0.1247, allocations: 0.5845 MB / 481.6 MB, free: 3.398 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.299e-05/0.1248, allocations: 0 / 481.6 MB, free: 3.398 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001354/0.1249, allocations: 7.922 kB / 481.7 MB, free: 3.391 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.037e-05/0.125, allocations: 15.88 kB / 481.7 MB, free: 3.375 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003208/0.1253, allocations: 78.97 kB / 481.7 MB, free: 3.301 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001657/0.1255, allocations: 103.8 kB / 481.8 MB, free: 3.199 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001217/0.1256, allocations: 27.97 kB / 481.9 MB, free: 3.172 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.794e-05/0.1257, allocations: 43.84 kB / 481.9 MB, free: 3.129 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.716e-05/0.1258, allocations: 39.78 kB / 482 MB, free: 3.09 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.27e-05/0.1258, allocations: 8 kB / 482 MB, free: 3.082 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.75e-05/0.1258, allocations: 4 kB / 482 MB, free: 3.078 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.545e-05/0.1259, allocations: 19.91 kB / 482 MB, free: 3.059 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.065e-05/0.1259, allocations: 35.8 kB / 482 MB, free: 3.023 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001501/0.1261, allocations: 83.91 kB / 482.1 MB, free: 2.941 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/0.1261, allocations: 0 / 482.1 MB, free: 2.941 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.022e-06/0.1261, allocations: 0 / 482.1 MB, free: 2.941 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.087e-06/0.1261, allocations: 0 / 482.1 MB, free: 2.941 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.0007623/0.1269, allocations: 415.2 kB / 482.5 MB, free: 2.488 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.742e-05/0.1269, allocations: 12.86 kB / 482.5 MB, free: 2.477 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.768e-05/0.127, allocations: 8.844 kB / 482.5 MB, free: 2.469 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002687/0.1273, allocations: 200.1 kB / 482.7 MB, free: 2.234 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.719e-05/0.1273, allocations: 8.375 kB / 482.7 MB, free: 2.227 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.812e-05/0.1273, allocations: 4.375 kB / 482.7 MB, free: 2.223 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002959/0.1276, allocations: 112.6 kB / 482.8 MB, free: 2.109 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.169e-05/0.1276, allocations: 3.938 kB / 482.9 MB, free: 2.105 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.569e-05/0.1277, allocations: 4 kB / 482.9 MB, free: 2.102 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.598e-06/0.1277, allocations: 4 kB / 482.9 MB, free: 2.098 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001747/0.1279, allocations: 51.95 kB / 482.9 MB, free: 2.047 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007097/0.1286, allocations: 388.4 kB / 483.3 MB, free: 1.617 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003456/0.1289, allocations: 102.5 kB / 483.4 MB, free: 1.508 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001195/0.1291, allocations: 36.91 kB / 483.4 MB, free: 1.469 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.325e-05/0.1291, allocations: 4 kB / 483.4 MB, free: 1.465 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002889/0.1294, allocations: 99.3 kB / 483.5 MB, free: 1.355 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 3.537e-06/0.1294, allocations: 3.938 kB / 483.5 MB, free: 1.352 MB / 350.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004818/0.1299, allocations: 145.5 kB / 483.7 MB, free: 1.203 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.277e-05/0.1299, allocations: 59.34 kB / 483.7 MB, free: 1.133 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001399/0.1301, allocations: 145.8 kB / 483.9 MB, free: 0.9805 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.145e-05/0.1301, allocations: 25.7 kB / 483.9 MB, free: 0.9492 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.666e-05/0.1302, allocations: 104 kB / 484 MB, free: 0.8438 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.703e-05/0.1302, allocations: 19.8 kB / 484 MB, free: 0.8242 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.751e-05/0.1303, allocations: 21.72 kB / 484 MB, free: 0.7969 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000157/0.1304, allocations: 322.8 kB / 484.4 MB, free: 484 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001486/0.1306, allocations: 39.97 kB / 484.4 MB, free: 444 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001339/0.1307, allocations: 53.62 kB / 484.4 MB, free: 384 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002193/0.131, allocations: 73.69 kB / 484.5 MB, free: 304 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.185e-06/0.131, allocations: 0 / 484.5 MB, free: 304 kB / 350.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0003035/0.1313, allocations: 117.5 kB / 484.6 MB, free: 180 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.592e-05/0.1313, allocations: 7.938 kB / 484.6 MB, free: 172 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.612e-06/0.1313, allocations: 8.016 kB / 484.7 MB, free: 164 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.27e-05/0.1313, allocations: 0 / 484.7 MB, free: 164 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001066/0.1315, allocations: 15.94 kB / 484.7 MB, free: 148 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.558e-06/0.1315, allocations: 4 kB / 484.7 MB, free: 144 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.585e-05/0.1316, allocations: 24.23 kB / 484.7 MB, free: 120 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.488e-05/0.1316, allocations: 8 kB / 484.7 MB, free: 112 kB / 350.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 0.000117/0.1317, allocations: 120.3 kB / 484.8 MB, free: 15.98 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.084e-05/0.1318, allocations: 15.78 kB / 484.8 MB, free: 15.97 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.904e-05/0.1318, allocations: 12.72 kB / 484.8 MB, free: 15.96 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.593e-06/0.1318, allocations: 0 / 484.8 MB, free: 15.96 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.396e-06/0.1318, allocations: 4 kB / 484.9 MB, free: 15.95 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.342e-06/0.1318, allocations: 3.984 kB / 484.9 MB, free: 15.95 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005569/0.1324, allocations: 394.4 kB / 485.2 MB, free: 15.51 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.1324, allocations: 0 / 485.2 MB, free: 15.51 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.782e-05/0.1325, allocations: 15.98 kB / 485.3 MB, free: 15.49 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.733e-06/0.1325, allocations: 0 / 485.3 MB, free: 15.49 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.014e-05/0.1325, allocations: 4 kB / 485.3 MB, free: 15.49 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.442e-06/0.1325, allocations: 0 / 485.3 MB, free: 15.49 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.1325, allocations: 0 / 485.3 MB, free: 15.49 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004916/0.133, allocations: 255.2 kB / 485.5 MB, free: 15.22 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.391e-05/0.1331, allocations: 84.95 kB / 485.6 MB, free: 15.12 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.39e-05/0.1331, allocations: 8.016 kB / 485.6 MB, free: 15.11 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001393/0.1333, allocations: 20.03 kB / 485.6 MB, free: 15.09 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.182e-05/0.1333, allocations: 19.97 kB / 485.6 MB, free: 15.07 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.593e-06/0.1334, allocations: 0 / 485.6 MB, free: 15.07 MB / 366.1 MB Notification: Performance of sorting global known variables: time 9.8e-05/0.1335, allocations: 112.2 kB / 485.7 MB, free: 14.96 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1335, allocations: 0 / 485.7 MB, free: 14.96 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002298/0.1337, allocations: 12 kB / 485.8 MB, free: 14.95 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.0001091/0.1338, allocations: 99.23 kB / 485.9 MB, free: 14.85 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003112/0.1341, allocations: 95.81 kB / 485.9 MB, free: 14.75 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.1341, allocations: 0 / 485.9 MB, free: 14.75 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001392/0.1343, allocations: 43.97 kB / 486 MB, free: 14.71 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003132/0.1346, allocations: 15.98 kB / 486 MB, free: 14.7 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009443/0.1356, allocations: 292.2 kB / 486.3 MB, free: 14.38 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003642/0.1359, allocations: 0.7043 MB / 487 MB, free: 13.65 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 4.762e-05/0.136, allocations: 8.562 kB / 487 MB, free: 13.64 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.077e-05/0.136, allocations: 15.44 kB / 487 MB, free: 13.63 MB / 366.1 MB Notification: Performance of SimCode: time 2e-07/0.136, allocations: 0 / 487 MB, free: 13.63 MB / 366.1 MB Notification: Performance of Templates: time 0.003933/0.14, allocations: 1.055 MB / 488.1 MB, free: 12.58 MB / 366.1 MB make -j1 -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.LimResetIntegrator.makefile (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.LimResetIntegrator.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.LimResetIntegrator.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.LimResetIntegrator.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.LimResetIntegrator.sim & ./ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.LimResetIntegrator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.LimResetIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.LimResetIntegrator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/LimResetIntegrator/LimResetIntegrator.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.LimResetIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches