Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(ModelicaTest.Blocks.LimResetIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator") translateModel(ModelicaTest.Blocks.LimResetIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001305/0.001305, allocations: 104.1 kB / 16.4 MB, free: 6.5 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.001474/0.001474, allocations: 192.2 kB / 17.34 MB, free: 5.738 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.748/1.748, allocations: 205.1 MB / 223.2 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2457/0.2457, allocations: 43.52 MB / 314.1 MB, free: 456 kB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0014/0.0014, allocations: 73.45 kB / 441.8 MB, free: 5.66 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.115/0.1165, allocations: 57.79 MB / 499.6 MB, free: 11.8 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.002623/0.1191, allocations: 1.621 MB / 0.4895 GB, free: 10.17 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.000915/0.1201, allocations: 0.5931 MB / 0.49 GB, free: 9.57 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.567e-05/0.1202, allocations: 4 kB / 0.49 GB, free: 9.566 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001227/0.1203, allocations: 11.88 kB / 0.4901 GB, free: 9.555 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 4.718e-05/0.1204, allocations: 11.86 kB / 0.4901 GB, free: 9.543 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003218/0.1207, allocations: 99.75 kB / 0.4902 GB, free: 9.445 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001476/0.1208, allocations: 119.7 kB / 0.4903 GB, free: 9.328 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001213/0.121, allocations: 35.95 kB / 0.4903 GB, free: 9.293 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.116e-05/0.121, allocations: 43.84 kB / 0.4903 GB, free: 9.25 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.385e-05/0.1211, allocations: 31.84 kB / 0.4904 GB, free: 9.219 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.169e-05/0.1211, allocations: 8 kB / 0.4904 GB, free: 9.211 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.691e-05/0.1212, allocations: 8 kB / 0.4904 GB, free: 9.203 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.086e-05/0.1212, allocations: 35.89 kB / 0.4904 GB, free: 9.168 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 5.136e-05/0.1213, allocations: 39.73 kB / 0.4905 GB, free: 9.129 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001617/0.1214, allocations: 95.52 kB / 0.4906 GB, free: 9.035 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.556e-06/0.1214, allocations: 0 / 0.4906 GB, free: 9.035 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.392e-06/0.1214, allocations: 0 / 0.4906 GB, free: 9.035 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.18e-06/0.1214, allocations: 0 / 0.4906 GB, free: 9.035 MB / 382.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.0006098/0.1221, allocations: 411.1 kB / 0.4909 GB, free: 8.586 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.602e-05/0.1221, allocations: 19.89 kB / 0.491 GB, free: 8.566 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.828e-05/0.1222, allocations: 8.891 kB / 0.491 GB, free: 8.559 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002533/0.1224, allocations: 204.1 kB / 0.4912 GB, free: 8.32 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.648e-05/0.1224, allocations: 8.375 kB / 0.4912 GB, free: 8.312 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.459e-05/0.1225, allocations: 8.375 kB / 0.4912 GB, free: 8.305 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002545/0.1227, allocations: 102 kB / 0.4913 GB, free: 8.199 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.594e-06/0.1227, allocations: 0 / 0.4913 GB, free: 8.199 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.386e-05/0.1228, allocations: 8 kB / 0.4913 GB, free: 8.191 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.358e-06/0.1228, allocations: 0 / 0.4913 GB, free: 8.191 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001499/0.1229, allocations: 47.97 kB / 0.4913 GB, free: 8.145 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006333/0.1236, allocations: 392.5 kB / 0.4917 GB, free: 7.711 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000357/0.1239, allocations: 102.5 kB / 0.4918 GB, free: 7.602 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001175/0.1241, allocations: 36.91 kB / 0.4918 GB, free: 7.562 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.307e-05/0.1241, allocations: 15.81 kB / 0.4919 GB, free: 7.547 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002224/0.1243, allocations: 99.34 kB / 0.492 GB, free: 7.438 MB / 382.1 MB Notification: Performance of pre-optimization done (n=7): time 1.222e-06/0.1243, allocations: 0 / 0.492 GB, free: 7.438 MB / 382.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004307/0.1248, allocations: 141.6 kB / 0.4921 GB, free: 7.293 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.967e-05/0.1248, allocations: 59.34 kB / 0.4921 GB, free: 7.223 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001292/0.1249, allocations: 149.8 kB / 0.4923 GB, free: 7.066 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.843e-05/0.125, allocations: 33.62 kB / 0.4923 GB, free: 7.027 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.823e-05/0.125, allocations: 96.14 kB / 0.4924 GB, free: 6.93 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.621e-05/0.1251, allocations: 27.92 kB / 0.4924 GB, free: 6.902 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.151e-05/0.1251, allocations: 25.72 kB / 0.4925 GB, free: 6.871 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001205/0.1252, allocations: 322.8 kB / 0.4928 GB, free: 6.547 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001177/0.1254, allocations: 35.97 kB / 0.4928 GB, free: 6.512 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001431/0.1255, allocations: 53.69 kB / 0.4929 GB, free: 6.453 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001966/0.1257, allocations: 77.62 kB / 0.4929 GB, free: 6.371 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.153e-06/0.1257, allocations: 0 / 0.4929 GB, free: 6.371 MB / 382.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002746/0.126, allocations: 117.5 kB / 0.493 GB, free: 6.25 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.316e-05/0.126, allocations: 7.938 kB / 0.4931 GB, free: 6.242 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.495e-06/0.126, allocations: 0 / 0.4931 GB, free: 6.242 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.714e-06/0.126, allocations: 0 / 0.4931 GB, free: 6.242 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.539e-05/0.1261, allocations: 20.02 kB / 0.4931 GB, free: 6.223 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.548e-06/0.1261, allocations: 4.281 kB / 0.4931 GB, free: 6.219 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.601e-05/0.1262, allocations: 15.94 kB / 0.4931 GB, free: 6.203 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.316e-05/0.1263, allocations: 11.98 kB / 0.4931 GB, free: 6.191 MB / 382.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 7.215e-05/0.1263, allocations: 125.7 kB / 0.4932 GB, free: 6.059 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.786e-05/0.1264, allocations: 11.89 kB / 0.4932 GB, free: 6.047 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.962e-05/0.1264, allocations: 12.72 kB / 0.4932 GB, free: 6.031 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.824e-06/0.1264, allocations: 4 kB / 0.4932 GB, free: 6.027 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.074e-06/0.1264, allocations: 0 / 0.4932 GB, free: 6.027 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.174e-06/0.1264, allocations: 0 / 0.4932 GB, free: 6.027 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005217/0.1269, allocations: 394.4 kB / 0.4936 GB, free: 5.586 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.906e-06/0.1269, allocations: 4 kB / 0.4936 GB, free: 5.582 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.88e-05/0.127, allocations: 19.92 kB / 0.4936 GB, free: 5.562 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.206e-06/0.127, allocations: 3.984 kB / 0.4937 GB, free: 5.559 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.027e-06/0.1271, allocations: 4 kB / 0.4937 GB, free: 5.555 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.1271, allocations: 3.938 kB / 0.4937 GB, free: 5.551 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.01e-07/0.1271, allocations: 0 / 0.4937 GB, free: 5.551 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004376/0.1276, allocations: 251.3 kB / 0.4939 GB, free: 5.289 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.989e-05/0.1276, allocations: 81.06 kB / 0.494 GB, free: 5.191 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.991e-05/0.1277, allocations: 8.016 kB / 0.494 GB, free: 5.184 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001273/0.1278, allocations: 11.98 kB / 0.494 GB, free: 5.172 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.458e-05/0.1278, allocations: 15.98 kB / 0.494 GB, free: 5.156 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.091e-06/0.1279, allocations: 4.062 kB / 0.494 GB, free: 5.152 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001144/0.128, allocations: 116 kB / 0.4941 GB, free: 5.039 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.128, allocations: 0 / 0.4941 GB, free: 5.039 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002182/0.1282, allocations: 19.94 kB / 0.4941 GB, free: 5.02 MB / 382.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.128e-05/0.1283, allocations: 99.19 kB / 0.4942 GB, free: 4.914 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002665/0.1286, allocations: 91.86 kB / 0.4943 GB, free: 4.824 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.472e-06/0.1286, allocations: 0 / 0.4943 GB, free: 4.824 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001287/0.1287, allocations: 43.92 kB / 0.4944 GB, free: 4.781 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002652/0.129, allocations: 22.08 kB / 0.4944 GB, free: 4.766 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004523/0.1294, allocations: 222.9 kB / 0.4946 GB, free: 4.523 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003119/0.1298, allocations: 0.6963 MB / 0.4953 GB, free: 3.801 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 3.859e-05/0.1298, allocations: 4.562 kB / 0.4953 GB, free: 3.793 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.201e-05/0.1299, allocations: 15.44 kB / 0.4953 GB, free: 3.777 MB / 382.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1299, allocations: 192 / 0.4953 GB, free: 3.777 MB / 382.1 MB Notification: Performance of Templates: time 0.003604/0.1335, allocations: 1.254 MB / 0.4965 GB, free: 2.523 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator.sim & ./ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/LimResetIntegrator/LimResetIntegrator.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches