Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.SelfResettingIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator") translateModel(ModelicaTest.Blocks.SelfResettingIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00121/0.00121, allocations: 108.2 kB / 18.39 MB, free: 4.629 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.001226/0.001226, allocations: 182.9 kB / 19.33 MB, free: 3.699 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.394/1.394, allocations: 222.9 MB / 243 MB, free: 15.13 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2113/0.2113, allocations: 44.17 MB / 337.4 MB, free: 2.699 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001234/0.001234, allocations: 64.58 kB / 409.9 MB, free: 26.52 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1174/0.1186, allocations: 60.82 MB / 470.7 MB, free: 13.64 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.002699/0.1214, allocations: 0.8156 MB / 471.5 MB, free: 12.83 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002609/0.1217, allocations: 47.81 kB / 471.6 MB, free: 12.78 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.34e-05/0.1218, allocations: 0 / 471.6 MB, free: 12.78 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001425/0.1219, allocations: 11.88 kB / 471.6 MB, free: 12.77 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 2.401e-05/0.122, allocations: 3.938 kB / 471.6 MB, free: 12.77 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001553/0.1221, allocations: 23.97 kB / 471.6 MB, free: 12.74 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001392/0.1223, allocations: 31.92 kB / 471.6 MB, free: 12.71 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001478/0.1224, allocations: 19.97 kB / 471.6 MB, free: 12.69 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.117e-05/0.1225, allocations: 11.94 kB / 471.7 MB, free: 12.68 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.719e-05/0.1225, allocations: 15.92 kB / 471.7 MB, free: 12.66 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.974e-05/0.1226, allocations: 4 kB / 471.7 MB, free: 12.66 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.429e-05/0.1226, allocations: 7.938 kB / 471.7 MB, free: 12.65 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.602e-05/0.1226, allocations: 4 kB / 471.7 MB, free: 12.65 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.465e-05/0.1227, allocations: 15.88 kB / 471.7 MB, free: 12.63 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001362/0.1228, allocations: 43.81 kB / 471.7 MB, free: 12.59 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.1228, allocations: 0 / 471.7 MB, free: 12.59 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.346e-06/0.1228, allocations: 0 / 471.7 MB, free: 12.59 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.502e-06/0.1228, allocations: 0 / 471.7 MB, free: 12.59 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0005944/0.1234, allocations: 351.4 kB / 472.1 MB, free: 12.2 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.647e-05/0.1235, allocations: 12.03 kB / 472.1 MB, free: 12.18 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.559e-05/0.1235, allocations: 4.844 kB / 472.1 MB, free: 12.18 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002837/0.1238, allocations: 184.3 kB / 472.3 MB, free: 11.96 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.51e-05/0.1239, allocations: 4.375 kB / 472.3 MB, free: 11.96 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.835e-05/0.1239, allocations: 8.312 kB / 472.3 MB, free: 11.95 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001478/0.124, allocations: 54.19 kB / 472.3 MB, free: 11.89 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.3e-05/0.1241, allocations: 4.172 kB / 472.4 MB, free: 11.89 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.748e-05/0.1241, allocations: 7.938 kB / 472.4 MB, free: 11.88 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.242e-06/0.1241, allocations: 0 / 472.4 MB, free: 11.88 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.354e-05/0.1242, allocations: 8 kB / 472.4 MB, free: 11.87 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005901/0.1248, allocations: 296.6 kB / 472.7 MB, free: 11.53 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.91e-05/0.1248, allocations: 34.5 kB / 472.7 MB, free: 11.49 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.91e-05/0.1249, allocations: 8.922 kB / 472.7 MB, free: 11.48 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.179e-05/0.1249, allocations: 0 / 472.7 MB, free: 11.48 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.744e-05/0.125, allocations: 47.41 kB / 472.7 MB, free: 11.42 MB / 350.1 MB Notification: Performance of pre-optimization done (n=3): time 1.263e-06/0.125, allocations: 0 / 472.7 MB, free: 11.42 MB / 350.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001711/0.1252, allocations: 57.62 kB / 472.8 MB, free: 11.36 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.837e-05/0.1252, allocations: 55.41 kB / 472.9 MB, free: 11.29 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001171/0.1253, allocations: 121.8 kB / 473 MB, free: 11.16 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.051e-05/0.1254, allocations: 29.7 kB / 473 MB, free: 11.12 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.285e-05/0.1254, allocations: 88.05 kB / 473.1 MB, free: 11.04 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.614e-05/0.1255, allocations: 7.906 kB / 473.1 MB, free: 11.03 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.163e-05/0.1255, allocations: 13.72 kB / 473.1 MB, free: 11.01 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001231/0.1256, allocations: 322.8 kB / 473.4 MB, free: 10.68 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.906e-05/0.1257, allocations: 8 kB / 473.4 MB, free: 10.68 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.322e-05/0.1257, allocations: 21.72 kB / 473.5 MB, free: 10.65 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.085e-05/0.1257, allocations: 29.64 kB / 473.5 MB, free: 10.61 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-06/0.1257, allocations: 0 / 473.5 MB, free: 10.61 MB / 350.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 7.747e-05/0.1258, allocations: 49.69 kB / 473.5 MB, free: 10.56 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.201e-05/0.1258, allocations: 4 kB / 473.5 MB, free: 10.55 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.731e-06/0.1259, allocations: 0 / 473.5 MB, free: 10.55 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.479e-05/0.1259, allocations: 7.938 kB / 473.5 MB, free: 10.55 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.988e-05/0.1259, allocations: 4.031 kB / 473.5 MB, free: 10.54 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.44e-06/0.1259, allocations: 4 kB / 473.6 MB, free: 10.54 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.835e-05/0.126, allocations: 3.906 kB / 473.6 MB, free: 10.54 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.667e-05/0.126, allocations: 11.94 kB / 473.6 MB, free: 10.52 MB / 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: 2 (greaterEqualThreshold.y,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * 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.218e-05/0.1261, allocations: 109.8 kB / 473.7 MB, free: 10.41 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.015e-05/0.1261, allocations: 4 kB / 473.7 MB, free: 10.4 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.024e-05/0.1261, allocations: 11.89 kB / 473.7 MB, free: 10.39 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.154e-06/0.1261, allocations: 3.938 kB / 473.7 MB, free: 10.38 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.987e-06/0.1261, allocations: 0 / 473.7 MB, free: 10.38 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.017e-06/0.1261, allocations: 8 kB / 473.7 MB, free: 10.38 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002693/0.1264, allocations: 302.4 kB / 474 MB, free: 10.02 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.1264, allocations: 0 / 474 MB, free: 10.02 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.06e-05/0.1265, allocations: 4 kB / 474 MB, free: 10.02 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.613e-06/0.1265, allocations: 0 / 474 MB, free: 10.02 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.576e-06/0.1265, allocations: 0 / 474 MB, free: 10.02 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.007e-06/0.1265, allocations: 3.938 kB / 474 MB, free: 10.02 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.82e-07/0.1265, allocations: 0 / 474 MB, free: 10.02 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001342/0.1266, allocations: 155.8 kB / 474.2 MB, free: 9.848 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.483e-05/0.1267, allocations: 81.14 kB / 474.2 MB, free: 9.75 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.583e-05/0.1267, allocations: 7.922 kB / 474.2 MB, free: 9.742 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.169e-05/0.1268, allocations: 7.938 kB / 474.3 MB, free: 9.734 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.789e-05/0.1268, allocations: 4 kB / 474.3 MB, free: 9.73 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.338e-06/0.1268, allocations: 0 / 474.3 MB, free: 9.73 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.667e-05/0.1269, allocations: 95.58 kB / 474.3 MB, free: 9.637 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1269, allocations: 0 / 474.3 MB, free: 9.637 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002152/0.1271, allocations: 11.91 kB / 474.4 MB, free: 9.625 MB / 350.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: 2 (greaterEqualThreshold.y,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * 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 Backend phase and start with SimCode phase: time 0.0001183/0.1272, allocations: 95.31 kB / 474.5 MB, free: 9.52 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 8.768e-05/0.1273, allocations: 15.98 kB / 474.5 MB, free: 9.504 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.1273, allocations: 4 kB / 474.5 MB, free: 9.5 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 1.833e-05/0.1274, allocations: 11.94 kB / 474.5 MB, free: 9.488 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002636/0.1276, allocations: 4 kB / 474.5 MB, free: 9.484 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003623/0.128, allocations: 142 kB / 474.6 MB, free: 9.32 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003051/0.1283, allocations: 0.6885 MB / 475.3 MB, free: 8.605 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.951e-05/0.1283, allocations: 3.984 kB / 475.3 MB, free: 8.602 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.917e-05/0.1284, allocations: 11.44 kB / 475.3 MB, free: 8.59 MB / 350.1 MB Notification: Performance of SimCode: time 3.21e-07/0.1284, allocations: 0 / 475.3 MB, free: 8.59 MB / 350.1 MB Notification: Performance of Templates: time 0.003094/0.1315, allocations: 0.5136 MB / 475.8 MB, free: 8.078 MB / 350.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.sim & ./ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/SelfResettingIntegrator/SelfResettingIntegrator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches