Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.conf.json 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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) Running command: translateModel(ModelicaTest.Blocks.ResetHoldIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator") translateModel(ModelicaTest.Blocks.ResetHoldIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001151/0.001151, allocations: 177 kB / 17.06 MB, free: 5.094 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.234/1.234, allocations: 223.2 MB / 241 MB, free: 11.89 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007998/0.0007999, allocations: 98.11 kB / 292.1 MB, free: 10.95 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3066/0.3066, allocations: 44.21 MB / 387.5 MB, free: 38.73 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000267/0.0002671, allocations: 8 kB / 459.9 MB, free: 1.551 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.27/0.2703, allocations: 61.9 MB / 0.5096 GB, free: 37.79 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1053/0.3756, allocations: 87.12 MB / 0.5946 GB, free: 8.043 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001791/0.3758, allocations: 67.97 kB / 0.5947 GB, free: 7.977 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004387/0.3802, allocations: 1.699 MB / 0.5964 GB, free: 6.281 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.075e-06/0.3803, allocations: 3.938 kB / 0.5964 GB, free: 6.277 MB / 410.7 MB Notification: Performance of Transformations before backend: time 8.607e-06/0.3803, allocations: 7.938 kB / 0.5964 GB, free: 6.27 MB / 410.7 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.0004226/0.3807, allocations: 383 kB / 0.5967 GB, free: 5.848 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.372e-05/0.3808, allocations: 8.031 kB / 0.5967 GB, free: 5.84 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.655e-05/0.3808, allocations: 15.91 kB / 0.5968 GB, free: 5.824 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001745/0.381, allocations: 179 kB / 0.5969 GB, free: 5.609 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.805e-05/0.381, allocations: 8 kB / 0.5969 GB, free: 5.602 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.067e-05/0.381, allocations: 8 kB / 0.5969 GB, free: 5.594 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001376/0.3812, allocations: 79.47 kB / 0.597 GB, free: 5.512 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.364e-06/0.3812, allocations: 0 / 0.597 GB, free: 5.512 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.467e-05/0.3812, allocations: 8 kB / 0.597 GB, free: 5.504 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.087e-06/0.3812, allocations: 0 / 0.597 GB, free: 5.504 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.405e-05/0.3813, allocations: 35.97 kB / 0.5971 GB, free: 5.469 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004975/0.3818, allocations: 360.5 kB / 0.5974 GB, free: 5.066 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.778e-05/0.3819, allocations: 46.56 kB / 0.5974 GB, free: 5.012 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.257e-06/0.3819, allocations: 3.938 kB / 0.5975 GB, free: 5.008 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001376/0.3821, allocations: 71.53 kB / 0.5975 GB, free: 4.926 MB / 410.7 MB Notification: Performance of pre-optimization done (n=7): time 1.463e-06/0.3821, allocations: 0 / 0.5975 GB, free: 4.926 MB / 410.7 MB Notification: Performance of matching and sorting (n=7): time 0.0001911/0.3823, allocations: 81.58 kB / 0.5976 GB, free: 4.84 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.048e-05/0.3823, allocations: 55.41 kB / 0.5977 GB, free: 4.773 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.923e-05/0.3824, allocations: 134.5 kB / 0.5978 GB, free: 4.633 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.991e-05/0.3824, allocations: 29.7 kB / 0.5978 GB, free: 4.598 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.178e-05/0.3825, allocations: 100 kB / 0.5979 GB, free: 4.496 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.421e-05/0.3825, allocations: 23.88 kB / 0.5979 GB, free: 4.473 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.887e-06/0.3825, allocations: 0 / 0.5979 GB, free: 4.473 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 8.835e-05/0.3826, allocations: 318.8 kB / 0.5982 GB, free: 4.152 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.586e-05/0.3827, allocations: 16 kB / 0.5982 GB, free: 4.137 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.884e-05/0.3827, allocations: 42.48 kB / 0.5983 GB, free: 4.086 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.813e-05/0.3828, allocations: 27.94 kB / 0.5983 GB, free: 4.059 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.3828, allocations: 0 / 0.5983 GB, free: 4.059 MB / 410.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001178/0.3829, allocations: 85.44 kB / 0.5984 GB, free: 3.969 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.283e-05/0.3829, allocations: 5.719 kB / 0.5984 GB, free: 3.965 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.51e-06/0.3829, allocations: 4 kB / 0.5984 GB, free: 3.961 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.142e-05/0.3829, allocations: 0 / 0.5984 GB, free: 3.961 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.397e-05/0.383, allocations: 4 kB / 0.5984 GB, free: 3.957 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.743e-06/0.383, allocations: 7.984 kB / 0.5984 GB, free: 3.949 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.778e-05/0.3831, allocations: 12.06 kB / 0.5984 GB, free: 3.938 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.037e-06/0.3831, allocations: 11.89 kB / 0.5984 GB, free: 3.926 MB / 410.7 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,$whenCondition2,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,fallingEdge.y,$PRE.fallingEdge.not_u,fallingEdge.not_u) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.031e-05/0.3832, allocations: 114.4 kB / 0.5985 GB, free: 3.805 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.441e-05/0.3832, allocations: 7.906 kB / 0.5986 GB, free: 3.797 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.238e-05/0.3832, allocations: 16.7 kB / 0.5986 GB, free: 3.785 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.553e-06/0.3832, allocations: 0 / 0.5986 GB, free: 3.785 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.005e-06/0.3832, allocations: 0 / 0.5986 GB, free: 3.785 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.086e-06/0.3833, allocations: 0 / 0.5986 GB, free: 3.785 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003184/0.3836, allocations: 354.8 kB / 0.5989 GB, free: 3.383 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/0.3836, allocations: 0 / 0.5989 GB, free: 3.383 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.583e-05/0.3836, allocations: 4 kB / 0.5989 GB, free: 3.379 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.844e-06/0.3837, allocations: 0 / 0.5989 GB, free: 3.379 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.756e-06/0.3837, allocations: 0 / 0.5989 GB, free: 3.379 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.152e-06/0.3837, allocations: 0 / 0.5989 GB, free: 3.379 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/0.3837, allocations: 4 kB / 0.5989 GB, free: 3.375 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001955/0.3839, allocations: 199.6 kB / 0.5991 GB, free: 3.164 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.918e-05/0.3839, allocations: 93.06 kB / 0.5992 GB, free: 3.055 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.079e-05/0.384, allocations: 7.969 kB / 0.5992 GB, free: 3.047 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.06e-05/0.3841, allocations: 4 kB / 0.5992 GB, free: 3.043 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.045e-05/0.3841, allocations: 11.92 kB / 0.5992 GB, free: 3.031 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.695e-06/0.3841, allocations: 4 kB / 0.5992 GB, free: 3.027 MB / 410.7 MB Notification: Performance of sorting global known variables: time 6.574e-05/0.3842, allocations: 112.8 kB / 0.5993 GB, free: 2.918 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.3842, allocations: 0 / 0.5993 GB, free: 2.918 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0002127/0.3844, allocations: 12 kB / 0.5993 GB, free: 2.906 MB / 410.7 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 (fallingEdge.y,$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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001021/0.3845, allocations: 103.2 kB / 0.5994 GB, free: 2.793 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0001118/0.3846, allocations: 47.92 kB / 0.5995 GB, free: 2.746 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.3847, allocations: 0 / 0.5995 GB, free: 2.746 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 4.856e-05/0.3847, allocations: 23.92 kB / 0.5995 GB, free: 2.723 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000205/0.3849, allocations: 17.36 kB / 0.5995 GB, free: 2.707 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004643/0.3854, allocations: 237.4 kB / 0.5998 GB, free: 2.445 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002299/0.3856, allocations: 0.7082 MB / 0.6004 GB, free: 1.711 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 3.415e-05/0.3857, allocations: 12.36 kB / 0.6005 GB, free: 1.699 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.668e-05/0.3857, allocations: 11.44 kB / 0.6005 GB, free: 1.688 MB / 410.7 MB Notification: Performance of SimCode: time 2.31e-07/0.3857, allocations: 0 / 0.6005 GB, free: 1.688 MB / 410.7 MB Notification: Performance of Templates: time 0.002587/0.3883, allocations: 0.8047 MB / 0.6013 GB, free: 0.8867 MB / 410.7 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.sim & ./ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/ResetHoldIntegrator/ResetHoldIntegrator.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches