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.001525/0.001525, allocations: 112.3 kB / 16.41 MB, free: 6.027 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.00152/0.00152, allocations: 185.1 kB / 17.34 MB, free: 5.633 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.571/1.571, allocations: 205.1 MB / 223.2 MB, free: 12.26 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.2204/0.2204, allocations: 43.53 MB / 314.1 MB, free: 464 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.001398/0.001398, allocations: 63.89 kB / 441.8 MB, free: 5.68 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.133/0.1345, allocations: 57.79 MB / 499.6 MB, free: 11.82 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.003752/0.1383, allocations: 1.609 MB / 0.4894 GB, free: 10.2 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001109/0.1394, allocations: 0.5191 MB / 0.4899 GB, free: 9.672 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001223/0.1396, allocations: 7.938 kB / 0.49 GB, free: 9.664 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001506/0.1397, allocations: 11.86 kB / 0.49 GB, free: 9.652 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 8.403e-05/0.1399, allocations: 15.88 kB / 0.49 GB, free: 9.637 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002395/0.1401, allocations: 43.88 kB / 0.49 GB, free: 9.594 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001724/0.1403, allocations: 71.78 kB / 0.4901 GB, free: 9.523 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001645/0.1405, allocations: 32.2 kB / 0.4901 GB, free: 9.492 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.562e-05/0.1405, allocations: 27.92 kB / 0.4901 GB, free: 9.465 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.789e-05/0.1406, allocations: 39.78 kB / 0.4902 GB, free: 9.426 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.013e-05/0.1407, allocations: 4 kB / 0.4902 GB, free: 9.422 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.5e-05/0.1407, allocations: 8 kB / 0.4902 GB, free: 9.414 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.447e-05/0.1407, allocations: 23.84 kB / 0.4902 GB, free: 9.391 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 4.974e-05/0.1408, allocations: 35.8 kB / 0.4903 GB, free: 9.355 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001645/0.141, allocations: 71.72 kB / 0.4903 GB, free: 9.285 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.141, allocations: 4 kB / 0.4903 GB, free: 9.281 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.141, allocations: 0 / 0.4903 GB, free: 9.281 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.921e-06/0.141, allocations: 0 / 0.4903 GB, free: 9.281 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.0006331/0.1416, allocations: 391.1 kB / 0.4907 GB, free: 8.852 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.022e-05/0.1417, allocations: 15.89 kB / 0.4907 GB, free: 8.836 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.173e-05/0.1417, allocations: 12.83 kB / 0.4907 GB, free: 8.824 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003332/0.1421, allocations: 192.2 kB / 0.4909 GB, free: 8.598 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.638e-05/0.1421, allocations: 8.312 kB / 0.4909 GB, free: 8.59 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.465e-05/0.1421, allocations: 12.38 kB / 0.4909 GB, free: 8.578 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001803/0.1423, allocations: 77.64 kB / 0.491 GB, free: 8.5 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.759e-06/0.1423, allocations: 4 kB / 0.491 GB, free: 8.496 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.399e-05/0.1424, allocations: 0 / 0.491 GB, free: 8.496 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.017e-06/0.1424, allocations: 4 kB / 0.491 GB, free: 8.492 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.178e-05/0.1425, allocations: 35.98 kB / 0.491 GB, free: 8.457 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006673/0.1432, allocations: 352.4 kB / 0.4914 GB, free: 8.062 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001213/0.1433, allocations: 54.5 kB / 0.4914 GB, free: 8 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.435e-05/0.1433, allocations: 24.83 kB / 0.4915 GB, free: 7.973 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.757e-06/0.1433, allocations: 0 / 0.4915 GB, free: 7.973 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001356/0.1435, allocations: 63.44 kB / 0.4915 GB, free: 7.898 MB / 382.1 MB Notification: Performance of pre-optimization done (n=7): time 1.864e-06/0.1435, allocations: 0 / 0.4915 GB, free: 7.898 MB / 382.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002647/0.1438, allocations: 97.44 kB / 0.4916 GB, free: 7.797 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.948e-05/0.1438, allocations: 51.41 kB / 0.4917 GB, free: 7.734 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000145/0.144, allocations: 140.4 kB / 0.4918 GB, free: 7.59 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.538e-05/0.144, allocations: 37.7 kB / 0.4918 GB, free: 7.547 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.069e-05/0.1441, allocations: 104 kB / 0.4919 GB, free: 7.441 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.35e-05/0.1441, allocations: 15.72 kB / 0.4919 GB, free: 7.426 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.731e-05/0.1442, allocations: 25.7 kB / 0.492 GB, free: 7.395 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001423/0.1443, allocations: 318.8 kB / 0.4923 GB, free: 7.074 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.109e-05/0.1444, allocations: 19.98 kB / 0.4923 GB, free: 7.055 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.043e-05/0.1445, allocations: 34.56 kB / 0.4923 GB, free: 7.012 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.702e-05/0.1446, allocations: 50.52 kB / 0.4924 GB, free: 6.953 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.445e-06/0.1446, allocations: 4 kB / 0.4924 GB, free: 6.949 MB / 382.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001788/0.1448, allocations: 85.53 kB / 0.4925 GB, free: 6.859 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.399e-05/0.1448, allocations: 4 kB / 0.4925 GB, free: 6.855 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.849e-06/0.1448, allocations: 4 kB / 0.4925 GB, free: 6.852 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.675e-05/0.1449, allocations: 3.938 kB / 0.4925 GB, free: 6.848 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.174e-05/0.145, allocations: 16.05 kB / 0.4925 GB, free: 6.832 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.084e-05/0.145, allocations: 0 / 0.4925 GB, free: 6.832 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.531e-05/0.1451, allocations: 12.02 kB / 0.4925 GB, free: 6.82 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.202e-05/0.1451, allocations: 8 kB / 0.4925 GB, free: 6.812 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 0.0001236/0.1452, allocations: 121.2 kB / 0.4926 GB, free: 6.688 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.486e-05/0.1453, allocations: 15.89 kB / 0.4926 GB, free: 6.672 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.542e-05/0.1453, allocations: 12.66 kB / 0.4926 GB, free: 6.656 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.615e-06/0.1453, allocations: 4 kB / 0.4927 GB, free: 6.652 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.432e-06/0.1453, allocations: 0 / 0.4927 GB, free: 6.652 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.789e-06/0.1454, allocations: 4 kB / 0.4927 GB, free: 6.648 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000436/0.1458, allocations: 354.3 kB / 0.493 GB, free: 6.246 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.334e-06/0.1458, allocations: 0 / 0.493 GB, free: 6.246 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.883e-05/0.1459, allocations: 4 kB / 0.493 GB, free: 6.242 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.126e-06/0.1459, allocations: 0 / 0.493 GB, free: 6.242 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.26e-05/0.1459, allocations: 0 / 0.493 GB, free: 6.242 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.03e-06/0.1459, allocations: 3.984 kB / 0.493 GB, free: 6.238 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.1459, allocations: 192 / 0.493 GB, free: 6.238 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002792/0.1462, allocations: 195.4 kB / 0.4932 GB, free: 6.031 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.415e-05/0.1463, allocations: 92.92 kB / 0.4933 GB, free: 5.922 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.04e-05/0.1463, allocations: 8.031 kB / 0.4933 GB, free: 5.914 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.164e-05/0.1464, allocations: 3.938 kB / 0.4933 GB, free: 5.91 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.82e-05/0.1465, allocations: 11.92 kB / 0.4933 GB, free: 5.898 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.434e-06/0.1465, allocations: 4 kB / 0.4933 GB, free: 5.895 MB / 382.1 MB Notification: Performance of sorting global known variables: time 8.316e-05/0.1466, allocations: 107.2 kB / 0.4934 GB, free: 5.789 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1466, allocations: 0 / 0.4934 GB, free: 5.789 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002653/0.1469, allocations: 20 kB / 0.4934 GB, free: 5.77 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 0.0001235/0.147, allocations: 95.25 kB / 0.4935 GB, free: 5.668 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001798/0.1472, allocations: 47.92 kB / 0.4936 GB, free: 5.621 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.016e-06/0.1472, allocations: 0 / 0.4936 GB, free: 5.621 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 5.631e-05/0.1473, allocations: 24.69 kB / 0.4936 GB, free: 5.598 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003523/0.1476, allocations: 18.75 kB / 0.4936 GB, free: 5.582 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006177/0.1483, allocations: 215.1 kB / 0.4938 GB, free: 5.348 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000375/0.1486, allocations: 0.704 MB / 0.4945 GB, free: 4.617 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 4.771e-05/0.1487, allocations: 8.422 kB / 0.4945 GB, free: 4.609 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.782e-05/0.1487, allocations: 11.44 kB / 0.4945 GB, free: 4.598 MB / 382.1 MB Notification: Performance of SimCode: time 2e-07/0.1487, allocations: 0 / 0.4945 GB, free: 4.598 MB / 382.1 MB Notification: Performance of Templates: time 0.003792/0.1525, allocations: 0.9492 MB / 0.4954 GB, free: 3.648 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