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.001306/0.001306, allocations: 110.6 kB / 17.86 MB, free: 5.504 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001207/0.001207, allocations: 209.7 kB / 18.79 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.32/1.32, allocations: 227.4 MB / 246.9 MB, free: 8.961 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.204/0.204, allocations: 46.11 MB / 344.3 MB, free: 11.55 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001329/0.00133, allocations: 79.97 kB / 417.5 MB, free: 20.15 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1007/0.102, allocations: 62.45 MB / 479.9 MB, free: 5.699 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.002923/0.105, allocations: 1.692 MB / 481.6 MB, free: 3.992 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009983/0.106, allocations: 0.5844 MB / 482.2 MB, free: 3.402 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.199e-05/0.1061, allocations: 4 kB / 482.2 MB, free: 3.398 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001263/0.1063, allocations: 7.922 kB / 482.2 MB, free: 3.391 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.719e-05/0.1064, allocations: 11.88 kB / 482.2 MB, free: 3.379 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003312/0.1067, allocations: 71.91 kB / 482.3 MB, free: 3.309 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001589/0.1069, allocations: 107.7 kB / 482.4 MB, free: 3.203 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001172/0.107, allocations: 35.91 kB / 482.4 MB, free: 3.168 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.464e-05/0.1071, allocations: 43.84 kB / 482.5 MB, free: 3.125 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.391e-05/0.1072, allocations: 35.84 kB / 482.5 MB, free: 3.09 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.189e-05/0.1072, allocations: 4 kB / 482.5 MB, free: 3.086 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.621e-05/0.1072, allocations: 4 kB / 482.5 MB, free: 3.082 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.825e-05/0.1072, allocations: 19.86 kB / 482.5 MB, free: 3.062 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.391e-05/0.1073, allocations: 47.7 kB / 482.6 MB, free: 3.016 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 9.29e-05/0.1074, allocations: 52.14 kB / 482.6 MB, free: 2.965 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.581e-06/0.1074, allocations: 4 kB / 482.7 MB, free: 2.961 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.42e-07/0.1074, allocations: 0 / 482.7 MB, free: 2.961 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.074e-06/0.1074, allocations: 0 / 482.7 MB, free: 2.961 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.0006296/0.1081, allocations: 411.2 kB / 483.1 MB, free: 2.512 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.595e-05/0.1081, allocations: 8.875 kB / 483.1 MB, free: 2.504 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.754e-05/0.1082, allocations: 20.83 kB / 483.1 MB, free: 2.484 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002115/0.1084, allocations: 196.1 kB / 483.3 MB, free: 2.254 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.764e-05/0.1084, allocations: 4.375 kB / 483.3 MB, free: 2.25 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.194e-05/0.1084, allocations: 8.375 kB / 483.3 MB, free: 2.242 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002685/0.1087, allocations: 113.8 kB / 483.4 MB, free: 2.125 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.878e-06/0.1087, allocations: 4 kB / 483.4 MB, free: 2.121 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.37e-05/0.1088, allocations: 4 kB / 483.4 MB, free: 2.117 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.158e-06/0.1088, allocations: 0 / 483.4 MB, free: 2.117 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001693/0.1089, allocations: 47.97 kB / 483.5 MB, free: 2.07 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006576/0.1096, allocations: 396.4 kB / 483.8 MB, free: 1.633 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000316/0.1099, allocations: 98.52 kB / 483.9 MB, free: 1.527 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001105/0.11, allocations: 36.92 kB / 484 MB, free: 1.488 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.259e-05/0.1101, allocations: 0 / 484 MB, free: 1.488 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002625/0.1103, allocations: 99.3 kB / 484.1 MB, free: 1.379 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 1.643e-06/0.1104, allocations: 0 / 484.1 MB, free: 1.379 MB / 350.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004266/0.1108, allocations: 141.5 kB / 484.2 MB, free: 1.234 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.974e-05/0.1108, allocations: 55.34 kB / 484.3 MB, free: 1.168 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001131/0.1109, allocations: 149.8 kB / 484.4 MB, free: 1.012 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.59e-05/0.111, allocations: 25.7 kB / 484.4 MB, free: 0.9805 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.988e-05/0.111, allocations: 108 kB / 484.5 MB, free: 0.8711 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.903e-05/0.1111, allocations: 11.8 kB / 484.5 MB, free: 0.8594 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.578e-05/0.1111, allocations: 33.7 kB / 484.6 MB, free: 0.8203 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001034/0.1112, allocations: 322.8 kB / 484.9 MB, free: 0.4961 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001301/0.1114, allocations: 35.92 kB / 484.9 MB, free: 472 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001189/0.1115, allocations: 53.62 kB / 485 MB, free: 412 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002006/0.1117, allocations: 81.61 kB / 485.1 MB, free: 324 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.1117, allocations: 0 / 485.1 MB, free: 324 kB / 350.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002781/0.112, allocations: 125.5 kB / 485.2 MB, free: 192 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.374e-05/0.112, allocations: 7.938 kB / 485.2 MB, free: 184 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.757e-06/0.112, allocations: 0 / 485.2 MB, free: 184 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.493e-05/0.112, allocations: 4 kB / 485.2 MB, free: 180 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.951e-05/0.1121, allocations: 15.98 kB / 485.2 MB, free: 164 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.811e-06/0.1122, allocations: 0 / 485.2 MB, free: 164 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.146e-05/0.1123, allocations: 19.97 kB / 485.2 MB, free: 144 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.215e-06/0.1123, allocations: 4 kB / 485.2 MB, free: 140 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 8.339e-05/0.1124, allocations: 124.8 kB / 485.4 MB, free: 8 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.243e-05/0.1124, allocations: 12.11 kB / 485.4 MB, free: 15.99 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.658e-05/0.1124, allocations: 20.64 kB / 485.4 MB, free: 15.97 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.244e-06/0.1125, allocations: 0 / 485.4 MB, free: 15.97 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.38e-06/0.1125, allocations: 0 / 485.4 MB, free: 15.97 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.715e-06/0.1125, allocations: 3.938 kB / 485.4 MB, free: 15.97 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005032/0.113, allocations: 390.5 kB / 485.8 MB, free: 15.53 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.674e-06/0.113, allocations: 0 / 485.8 MB, free: 15.53 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.605e-05/0.1131, allocations: 15.98 kB / 485.8 MB, free: 15.52 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.774e-06/0.1131, allocations: 0 / 485.8 MB, free: 15.52 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.286e-05/0.1131, allocations: 4 kB / 485.8 MB, free: 15.51 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.463e-06/0.1131, allocations: 0 / 485.8 MB, free: 15.51 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.1131, allocations: 3.938 kB / 485.8 MB, free: 15.51 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004368/0.1136, allocations: 255.2 kB / 486 MB, free: 15.24 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.848e-05/0.1136, allocations: 85.28 kB / 486.1 MB, free: 15.14 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.949e-05/0.1136, allocations: 8.094 kB / 486.1 MB, free: 15.13 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001394/0.1138, allocations: 19.97 kB / 486.2 MB, free: 15.11 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.838e-05/0.1138, allocations: 15.92 kB / 486.2 MB, free: 15.1 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.506e-06/0.1139, allocations: 4 kB / 486.2 MB, free: 15.09 MB / 366.1 MB Notification: Performance of sorting global known variables: time 7.705e-05/0.1139, allocations: 108.8 kB / 486.3 MB, free: 14.99 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1139, allocations: 0 / 486.3 MB, free: 14.99 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002289/0.1142, allocations: 20 kB / 486.3 MB, free: 14.97 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 8.829e-05/0.1143, allocations: 99.19 kB / 486.4 MB, free: 14.86 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002794/0.1146, allocations: 84.36 kB / 486.5 MB, free: 14.78 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.527e-06/0.1146, allocations: 0 / 486.5 MB, free: 14.78 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001363/0.1147, allocations: 51.91 kB / 486.5 MB, free: 14.73 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003048/0.115, allocations: 23.92 kB / 486.6 MB, free: 14.71 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009019/0.1159, allocations: 326 kB / 486.9 MB, free: 14.36 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002415/0.1162, allocations: 0.6965 MB / 487.6 MB, free: 13.63 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.296e-05/0.1162, allocations: 19.44 kB / 487.6 MB, free: 13.61 MB / 366.1 MB Notification: Performance of SimCode: time 3.41e-07/0.1162, allocations: 0 / 487.6 MB, free: 13.61 MB / 366.1 MB Notification: Performance of Templates: time 0.00265/0.1189, allocations: 1.325 MB / 488.9 MB, free: 12.29 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/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