Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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 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.SelfResettingIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator") translateModel(ModelicaTest.Blocks.SelfResettingIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00118/0.00118, allocations: 105.6 kB / 16.27 MB, free: 5.965 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.001326/0.001326, allocations: 190.2 kB / 17.2 MB, free: 5.598 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.637/1.637, allocations: 205.1 MB / 223.1 MB, free: 12.29 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.2492/0.2492, allocations: 43.52 MB / 313.9 MB, free: 0.5352 MB / 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.001565/0.001565, allocations: 71.3 kB / 382.7 MB, free: 56.74 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1313/0.1328, allocations: 57.79 MB / 440.5 MB, free: 6.938 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.002663/0.1356, allocations: 0.8108 MB / 441.3 MB, free: 6.117 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002323/0.1358, allocations: 48.33 kB / 441.4 MB, free: 6.07 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.979e-05/0.1359, allocations: 0 / 441.4 MB, free: 6.07 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001404/0.1361, allocations: 15.86 kB / 441.4 MB, free: 6.055 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 1.743e-05/0.1361, allocations: 0 / 441.4 MB, free: 6.055 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001337/0.1363, allocations: 19.92 kB / 441.4 MB, free: 6.035 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001183/0.1364, allocations: 39.84 kB / 441.4 MB, free: 5.996 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001138/0.1365, allocations: 20.2 kB / 441.5 MB, free: 5.977 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.787e-05/0.1365, allocations: 15.94 kB / 441.5 MB, free: 5.961 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.915e-05/0.1366, allocations: 15.92 kB / 441.5 MB, free: 5.945 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.65e-05/0.1366, allocations: 4 kB / 441.5 MB, free: 5.941 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.358e-05/0.1366, allocations: 4 kB / 441.5 MB, free: 5.938 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.089e-05/0.1367, allocations: 7.938 kB / 441.5 MB, free: 5.93 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 3.951e-05/0.1367, allocations: 11.94 kB / 441.5 MB, free: 5.918 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001151/0.1368, allocations: 39.81 kB / 441.6 MB, free: 5.879 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.7e-06/0.1368, allocations: 3.938 kB / 441.6 MB, free: 5.875 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.1368, allocations: 0 / 441.6 MB, free: 5.875 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.009e-05/0.1369, allocations: 0 / 441.6 MB, free: 5.875 MB / 318.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.0004756/0.1373, allocations: 355.4 kB / 441.9 MB, free: 5.477 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.577e-05/0.1374, allocations: 15.89 kB / 441.9 MB, free: 5.461 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.05e-05/0.1374, allocations: 0.9375 kB / 441.9 MB, free: 5.461 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001783/0.1376, allocations: 184.2 kB / 442.1 MB, free: 5.242 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.378e-05/0.1376, allocations: 4.312 kB / 442.1 MB, free: 5.238 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.916e-05/0.1377, allocations: 4.375 kB / 442.1 MB, free: 5.234 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001282/0.1378, allocations: 54.25 kB / 442.2 MB, free: 5.176 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.077e-06/0.1378, allocations: 192 / 442.2 MB, free: 5.176 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.299e-05/0.1378, allocations: 7.938 kB / 442.2 MB, free: 5.168 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.811e-06/0.1379, allocations: 0 / 442.2 MB, free: 5.168 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.547e-05/0.1379, allocations: 19.98 kB / 442.2 MB, free: 5.148 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000469/0.1384, allocations: 292.6 kB / 442.5 MB, free: 4.812 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.47e-05/0.1384, allocations: 26.58 kB / 442.5 MB, free: 4.777 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.644e-05/0.1385, allocations: 4.859 kB / 442.5 MB, free: 4.77 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.377e-06/0.1385, allocations: 4.062 kB / 442.5 MB, free: 4.766 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001308/0.1386, allocations: 51.41 kB / 442.6 MB, free: 4.703 MB / 318.1 MB Notification: Performance of pre-optimization done (n=3): time 1.132e-06/0.1386, allocations: 0 / 442.6 MB, free: 4.703 MB / 318.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001541/0.1388, allocations: 61.53 kB / 442.6 MB, free: 4.637 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.373e-05/0.1388, allocations: 51.41 kB / 442.7 MB, free: 4.574 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.337e-05/0.1389, allocations: 113.8 kB / 442.8 MB, free: 4.453 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.005e-05/0.1389, allocations: 25.7 kB / 442.8 MB, free: 4.422 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.445e-05/0.139, allocations: 94.42 kB / 442.9 MB, free: 4.328 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.059e-05/0.139, allocations: 7.906 kB / 442.9 MB, free: 4.32 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.397e-05/0.139, allocations: 17.72 kB / 442.9 MB, free: 4.297 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.364e-05/0.1391, allocations: 322.8 kB / 443.2 MB, free: 3.973 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.826e-05/0.1391, allocations: 8 kB / 443.3 MB, free: 3.965 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.99e-05/0.1391, allocations: 17.72 kB / 443.3 MB, free: 3.941 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.256e-05/0.1392, allocations: 29.64 kB / 443.3 MB, free: 3.906 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.1392, allocations: 3.938 kB / 443.3 MB, free: 3.902 MB / 318.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 6.393e-05/0.1392, allocations: 57.92 kB / 443.4 MB, free: 3.84 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.284e-05/0.1393, allocations: 4 kB / 443.4 MB, free: 3.836 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.593e-06/0.1393, allocations: 4 kB / 443.4 MB, free: 3.832 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.522e-05/0.1393, allocations: 0 / 443.4 MB, free: 3.832 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.056e-05/0.1393, allocations: 11.92 kB / 443.4 MB, free: 3.82 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.52e-06/0.1393, allocations: 0 / 443.4 MB, free: 3.82 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.795e-05/0.1394, allocations: 11.94 kB / 443.4 MB, free: 3.809 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.33e-06/0.1394, allocations: 3.938 kB / 443.4 MB, free: 3.805 MB / 318.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 6.717e-05/0.1394, allocations: 117.8 kB / 443.5 MB, free: 3.68 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.208e-05/0.1395, allocations: 7.906 kB / 443.5 MB, free: 3.672 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.652e-05/0.1395, allocations: 7.906 kB / 443.5 MB, free: 3.66 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.212e-06/0.1395, allocations: 0 / 443.5 MB, free: 3.66 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.332e-06/0.1395, allocations: 3.984 kB / 443.5 MB, free: 3.656 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.574e-06/0.1395, allocations: 0 / 443.5 MB, free: 3.656 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002088/0.1397, allocations: 298.5 kB / 443.8 MB, free: 3.309 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.1397, allocations: 0 / 443.8 MB, free: 3.309 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.842e-05/0.1398, allocations: 7.984 kB / 443.8 MB, free: 3.301 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.693e-06/0.1398, allocations: 4.375 kB / 443.8 MB, free: 3.297 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.083e-06/0.1398, allocations: 0 / 443.8 MB, free: 3.297 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.324e-06/0.1398, allocations: 3.938 kB / 443.8 MB, free: 3.293 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.021e-06/0.1398, allocations: 0 / 443.8 MB, free: 3.293 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001008/0.1399, allocations: 155.4 kB / 444 MB, free: 3.125 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.517e-05/0.1399, allocations: 81.14 kB / 444.1 MB, free: 3.027 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.265e-05/0.14, allocations: 0 / 444.1 MB, free: 3.027 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.565e-05/0.14, allocations: 7.938 kB / 444.1 MB, free: 3.02 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.244e-05/0.1401, allocations: 8.047 kB / 444.1 MB, free: 3.012 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.448e-06/0.1401, allocations: 4 kB / 444.1 MB, free: 3.008 MB / 318.1 MB Notification: Performance of sorting global known variables: time 3.064e-05/0.1401, allocations: 91.27 kB / 444.2 MB, free: 2.918 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1401, allocations: 0 / 444.2 MB, free: 2.918 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000222/0.1403, allocations: 4 kB / 444.2 MB, free: 2.914 MB / 318.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 7.453e-05/0.1404, allocations: 95.25 kB / 444.3 MB, free: 2.809 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 8.023e-05/0.1405, allocations: 19.92 kB / 444.3 MB, free: 2.789 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.426e-06/0.1405, allocations: 4 kB / 444.3 MB, free: 2.785 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 1.625e-05/0.1405, allocations: 12.06 kB / 444.3 MB, free: 2.773 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002627/0.1408, allocations: 12.22 kB / 444.3 MB, free: 2.762 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002699/0.1411, allocations: 138.3 kB / 444.5 MB, free: 2.602 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001145/0.1412, allocations: 0.6884 MB / 445.1 MB, free: 1.887 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 1.847e-05/0.1412, allocations: 3.984 kB / 445.1 MB, free: 1.883 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.821e-05/0.1413, allocations: 15.44 kB / 445.2 MB, free: 1.867 MB / 318.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1413, allocations: 0 / 445.2 MB, free: 1.867 MB / 318.1 MB Notification: Performance of Templates: time 0.002716/0.144, allocations: 0.5099 MB / 445.7 MB, free: 1.359 MB / 318.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator.sim & ./ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/SelfResettingIntegrator/SelfResettingIntegrator.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches