Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.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.ResetHoldIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator") translateModel(ModelicaTest.Blocks.ResetHoldIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001133/0.001133, allocations: 106.3 kB / 16.41 MB, free: 6.449 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.001089/0.001089, allocations: 192.2 kB / 17.34 MB, free: 5.719 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.468/1.468, 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.2213/0.2213, 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.00148/0.00148, allocations: 73.47 kB / 441.8 MB, free: 5.645 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1322/0.1337, allocations: 57.79 MB / 499.6 MB, free: 11.78 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.002798/0.1366, allocations: 1.609 MB / 0.4894 GB, free: 10.16 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008722/0.1375, allocations: 0.5268 MB / 0.49 GB, free: 9.629 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.019e-05/0.1376, allocations: 0 / 0.49 GB, free: 9.629 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001694/0.1377, allocations: 11.86 kB / 0.49 GB, free: 9.617 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 4.876e-05/0.1378, allocations: 11.88 kB / 0.49 GB, free: 9.605 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001687/0.138, allocations: 35.91 kB / 0.49 GB, free: 9.57 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001296/0.1381, allocations: 83.75 kB / 0.4901 GB, free: 9.488 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000114/0.1382, allocations: 36.19 kB / 0.4901 GB, free: 9.453 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.573e-05/0.1383, allocations: 31.86 kB / 0.4902 GB, free: 9.422 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.127e-05/0.1384, allocations: 35.78 kB / 0.4902 GB, free: 9.387 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.538e-05/0.1384, allocations: 4 kB / 0.4902 GB, free: 9.383 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.317e-05/0.1384, allocations: 8 kB / 0.4902 GB, free: 9.375 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.413e-05/0.1384, allocations: 15.92 kB / 0.4902 GB, free: 9.359 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 4.8e-05/0.1385, allocations: 39.8 kB / 0.4903 GB, free: 9.32 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001153/0.1386, allocations: 71.72 kB / 0.4903 GB, free: 9.25 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.068e-06/0.1386, allocations: 7.938 kB / 0.4903 GB, free: 9.242 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.273e-06/0.1386, allocations: 0 / 0.4903 GB, free: 9.242 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.697e-06/0.1386, allocations: 0 / 0.4903 GB, free: 9.242 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0005325/0.1392, allocations: 391.1 kB / 0.4907 GB, free: 8.812 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.184e-05/0.1392, allocations: 11.89 kB / 0.4907 GB, free: 8.801 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.651e-05/0.1392, allocations: 12.84 kB / 0.4907 GB, free: 8.789 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002436/0.1395, allocations: 188.3 kB / 0.4909 GB, free: 8.566 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.88e-05/0.1395, allocations: 8.312 kB / 0.4909 GB, free: 8.559 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.679e-05/0.1396, allocations: 16.36 kB / 0.4909 GB, free: 8.543 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001438/0.1397, allocations: 77.92 kB / 0.491 GB, free: 8.461 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.193e-06/0.1397, allocations: 0 / 0.491 GB, free: 8.461 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.241e-05/0.1397, allocations: 4 kB / 0.491 GB, free: 8.457 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.614e-06/0.1397, allocations: 4 kB / 0.491 GB, free: 8.453 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.682e-05/0.1398, allocations: 27.98 kB / 0.491 GB, free: 8.426 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005113/0.1403, allocations: 360.4 kB / 0.4914 GB, free: 8.023 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000137/0.1405, allocations: 46.59 kB / 0.4914 GB, free: 7.969 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.885e-05/0.1405, allocations: 12.86 kB / 0.4914 GB, free: 7.953 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.1e-05/0.1405, allocations: 3.938 kB / 0.4914 GB, free: 7.949 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001093/0.1407, allocations: 75.36 kB / 0.4915 GB, free: 7.863 MB / 382.1 MB Notification: Performance of pre-optimization done (n=7): time 1.193e-06/0.1407, allocations: 0 / 0.4915 GB, free: 7.863 MB / 382.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002595/0.1409, allocations: 97.52 kB / 0.4916 GB, free: 7.762 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.368e-05/0.141, allocations: 51.41 kB / 0.4917 GB, free: 7.699 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001047/0.1411, allocations: 140.5 kB / 0.4918 GB, free: 7.555 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.495e-05/0.1411, allocations: 33.64 kB / 0.4918 GB, free: 7.516 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.126e-05/0.1412, allocations: 96.12 kB / 0.4919 GB, free: 7.418 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.288e-05/0.1412, allocations: 19.7 kB / 0.4919 GB, free: 7.398 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.17e-05/0.1413, allocations: 29.7 kB / 0.492 GB, free: 7.363 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001749/0.1414, allocations: 318.8 kB / 0.4923 GB, free: 7.043 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.976e-05/0.1415, allocations: 27.92 kB / 0.4923 GB, free: 7.016 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.628e-05/0.1415, allocations: 38.56 kB / 0.4923 GB, free: 6.969 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.532e-05/0.1416, allocations: 42.58 kB / 0.4924 GB, free: 6.918 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.1416, allocations: 0 / 0.4924 GB, free: 6.918 MB / 382.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001241/0.1418, allocations: 89.53 kB / 0.4925 GB, free: 6.824 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.227e-05/0.1418, allocations: 12 kB / 0.4925 GB, free: 6.812 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.017e-06/0.1418, allocations: 0 / 0.4925 GB, free: 6.812 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.471e-05/0.1418, allocations: 7.938 kB / 0.4925 GB, free: 6.805 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.008e-05/0.1419, allocations: 4 kB / 0.4925 GB, free: 6.801 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.666e-06/0.1419, allocations: 7.984 kB / 0.4925 GB, free: 6.793 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.381e-05/0.142, allocations: 8.078 kB / 0.4925 GB, free: 6.785 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.761e-06/0.142, allocations: 0 / 0.4925 GB, free: 6.785 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,fallingEdge.not_u,$PRE.fallingEdge.not_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.433e-05/0.1421, allocations: 129.2 kB / 0.4926 GB, free: 6.652 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.56e-05/0.1421, allocations: 7.906 kB / 0.4926 GB, free: 6.645 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.59e-05/0.1421, allocations: 20.64 kB / 0.4926 GB, free: 6.621 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.485e-06/0.1421, allocations: 3.984 kB / 0.4927 GB, free: 6.617 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.096e-06/0.1421, allocations: 4 kB / 0.4927 GB, free: 6.613 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.358e-06/0.1421, allocations: 0 / 0.4927 GB, free: 6.613 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003469/0.1425, allocations: 350.3 kB / 0.493 GB, free: 6.215 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.1425, allocations: 0 / 0.493 GB, free: 6.215 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.417e-05/0.1426, allocations: 4 kB / 0.493 GB, free: 6.211 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.623e-06/0.1426, allocations: 0 / 0.493 GB, free: 6.211 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.917e-06/0.1426, allocations: 4 kB / 0.493 GB, free: 6.207 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.303e-06/0.1426, allocations: 4 kB / 0.493 GB, free: 6.203 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.535e-06/0.1426, allocations: 0 / 0.493 GB, free: 6.203 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001915/0.1428, allocations: 196 kB / 0.4932 GB, free: 5.996 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.064e-05/0.1428, allocations: 85 kB / 0.4933 GB, free: 5.895 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.743e-05/0.1429, allocations: 3.938 kB / 0.4933 GB, free: 5.891 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.871e-05/0.143, allocations: 11.94 kB / 0.4933 GB, free: 5.879 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.913e-05/0.143, allocations: 7.984 kB / 0.4933 GB, free: 5.871 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.683e-06/0.143, allocations: 4 kB / 0.4933 GB, free: 5.867 MB / 382.1 MB Notification: Performance of sorting global known variables: time 6.106e-05/0.1431, allocations: 111.3 kB / 0.4934 GB, free: 5.758 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1431, allocations: 0 / 0.4934 GB, free: 5.758 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000222/0.1433, allocations: 19.94 kB / 0.4934 GB, free: 5.738 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,fallingEdge.not_u) * Number of discrete states: 1 (fallingEdge.not_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.188e-05/0.1434, allocations: 91.25 kB / 0.4935 GB, free: 5.641 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001688/0.1436, allocations: 55.97 kB / 0.4936 GB, free: 5.586 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.1436, allocations: 0 / 0.4936 GB, free: 5.586 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 4.744e-05/0.1437, allocations: 23.94 kB / 0.4936 GB, free: 5.562 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002922/0.144, allocations: 26.86 kB / 0.4936 GB, free: 5.539 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005262/0.1445, allocations: 211 kB / 0.4938 GB, free: 5.309 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000336/0.1448, allocations: 0.6963 MB / 0.4945 GB, free: 4.586 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 3.041e-05/0.1449, allocations: 4.438 kB / 0.4945 GB, free: 4.582 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.406e-05/0.1449, allocations: 19.42 kB / 0.4945 GB, free: 4.562 MB / 382.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1449, allocations: 4 kB / 0.4945 GB, free: 4.559 MB / 382.1 MB Notification: Performance of Templates: time 0.003138/0.1481, allocations: 0.9416 MB / 0.4954 GB, free: 3.617 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.sim & ./ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/ResetHoldIntegrator/ResetHoldIntegrator.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches