Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TimeBasedStep.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) 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(Modelica.Clocked.Examples.Elementary.BooleanSignals.TimeBasedStep,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TimeBasedStep") translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.TimeBasedStep,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TimeBasedStep") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001389/0.001389, allocations: 104.6 kB / 16.92 MB, free: 5.777 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.001328/0.001328, allocations: 191.3 kB / 17.85 MB, free: 5.195 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.503/1.503, allocations: 222.9 MB / 241.5 MB, free: 15.26 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001616/0.001616, allocations: 52.48 kB / 300.6 MB, free: 5.824 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.13/0.1317, allocations: 49.45 MB / 350.1 MB, free: 4.363 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TimeBasedStep): time 0.003579/0.1353, allocations: 1.418 MB / 351.5 MB, free: 2.93 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.000296/0.1356, allocations: 103.6 kB / 351.6 MB, free: 2.828 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.056e-05/0.1357, allocations: 0 / 351.6 MB, free: 2.828 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 4.237e-05/0.1358, allocations: 7.922 kB / 351.6 MB, free: 2.82 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 3.934e-05/0.1359, allocations: 0 / 351.6 MB, free: 2.82 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002826/0.1362, allocations: 23.91 kB / 351.6 MB, free: 2.797 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 9.589e-05/0.1363, allocations: 23.94 kB / 351.6 MB, free: 2.773 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001296/0.1364, allocations: 11.98 kB / 351.6 MB, free: 2.762 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.007e-05/0.1364, allocations: 15.94 kB / 351.7 MB, free: 2.746 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.779e-05/0.1365, allocations: 11.92 kB / 351.7 MB, free: 2.734 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.098e-05/0.1365, allocations: 0 / 351.7 MB, free: 2.734 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.414e-05/0.1365, allocations: 4 kB / 351.7 MB, free: 2.73 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 2.446e-05/0.1366, allocations: 7.984 kB / 351.7 MB, free: 2.723 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 4.461e-05/0.1366, allocations: 15.88 kB / 351.7 MB, free: 2.707 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001072/0.1367, allocations: 19.91 kB / 351.7 MB, free: 2.688 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.1367, allocations: 0 / 351.7 MB, free: 2.688 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.154e-06/0.1367, allocations: 4 kB / 351.7 MB, free: 2.684 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.561e-06/0.1368, allocations: 0 / 351.7 MB, free: 2.684 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0005351/0.1373, allocations: 339.7 kB / 352.1 MB, free: 2.301 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.737e-05/0.1374, allocations: 15.89 kB / 352.1 MB, free: 2.285 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.082e-05/0.1374, allocations: 4.844 kB / 352.1 MB, free: 2.281 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003409/0.1377, allocations: 172.3 kB / 352.2 MB, free: 2.074 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.2e-05/0.1378, allocations: 4.375 kB / 352.2 MB, free: 2.07 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.409e-05/0.1378, allocations: 4.375 kB / 352.2 MB, free: 2.066 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003537/0.1382, allocations: 105.3 kB / 352.4 MB, free: 1.953 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.129e-05/0.1382, allocations: 192 / 352.4 MB, free: 1.953 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.308e-05/0.1382, allocations: 7.875 kB / 352.4 MB, free: 1.945 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.762e-06/0.1382, allocations: 4 kB / 352.4 MB, free: 1.941 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.633e-05/0.1383, allocations: 15.98 kB / 352.4 MB, free: 1.926 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001851/0.1385, allocations: 149.7 kB / 352.5 MB, free: 1.73 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001597/0.1387, allocations: 50.55 kB / 352.6 MB, free: 1.672 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.576e-05/0.1388, allocations: 28.83 kB / 352.6 MB, free: 1.641 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.897e-05/0.1388, allocations: 0 / 352.6 MB, free: 1.641 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.001e-05/0.1388, allocations: 34.59 kB / 352.6 MB, free: 1.598 MB / 286.1 MB Notification: Performance of pre-optimization done (n=4): time 9.21e-07/0.1388, allocations: 0 / 352.6 MB, free: 1.598 MB / 286.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002327/0.1391, allocations: 65.53 kB / 352.7 MB, free: 1.527 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.118e-05/0.1392, allocations: 55.41 kB / 352.8 MB, free: 1.461 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001201/0.1393, allocations: 105.8 kB / 352.9 MB, free: 1.348 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.935e-05/0.1393, allocations: 29.7 kB / 352.9 MB, free: 1.312 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.883e-05/0.1394, allocations: 84.14 kB / 353 MB, free: 1.227 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.473e-05/0.1394, allocations: 0 / 353 MB, free: 1.227 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.314e-05/0.1394, allocations: 21.66 kB / 353 MB, free: 1.199 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001525/0.1396, allocations: 314.8 kB / 353.3 MB, free: 0.8828 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.191e-05/0.1396, allocations: 8 kB / 353.3 MB, free: 0.875 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.418e-05/0.1397, allocations: 31.61 kB / 353.3 MB, free: 0.832 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.314e-05/0.1397, allocations: 35.36 kB / 353.4 MB, free: 0.7852 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.939e-06/0.1397, allocations: 0 / 353.4 MB, free: 0.7852 MB / 286.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 8.598e-05/0.1398, allocations: 53.67 kB / 353.4 MB, free: 0.7266 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.484e-05/0.1398, allocations: 12.03 kB / 353.4 MB, free: 0.7148 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.363e-06/0.1399, allocations: 3.938 kB / 353.4 MB, free: 0.7109 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.578e-05/0.1399, allocations: 3.984 kB / 353.4 MB, free: 0.707 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.363e-05/0.1399, allocations: 4 kB / 353.4 MB, free: 0.7031 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.364e-06/0.1399, allocations: 0 / 353.4 MB, free: 0.7031 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.5e-05/0.14, allocations: 4 kB / 353.5 MB, free: 0.6992 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.647e-06/0.14, allocations: 3.938 kB / 353.5 MB, free: 0.6953 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 3 (assignClock1.y,assignClock1.u,step.y) * 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 8.602e-05/0.1401, allocations: 118 kB / 353.6 MB, free: 0.5703 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.669e-05/0.1402, allocations: 61.59 kB / 353.6 MB, free: 0.5039 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.524e-05/0.1402, allocations: 11.44 kB / 353.6 MB, free: 496 kB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.894e-06/0.1402, allocations: 0 / 353.6 MB, free: 496 kB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.691e-06/0.1402, allocations: 0 / 353.6 MB, free: 496 kB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.729e-06/0.1402, allocations: 3.984 kB / 353.6 MB, free: 492 kB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001081/0.1404, allocations: 153.7 kB / 353.8 MB, free: 288 kB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.1404, allocations: 0 / 353.8 MB, free: 288 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.326e-05/0.1404, allocations: 4 kB / 353.8 MB, free: 284 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.665e-06/0.1404, allocations: 0 / 353.8 MB, free: 284 kB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.104e-05/0.1404, allocations: 3.938 kB / 353.8 MB, free: 280 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.1404, allocations: 0 / 353.8 MB, free: 280 kB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.316e-06/0.1404, allocations: 7.938 kB / 353.8 MB, free: 272 kB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001243/0.1406, allocations: 85.05 kB / 353.9 MB, free: 168 kB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.726e-05/0.1406, allocations: 81.02 kB / 354 MB, free: 68 kB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.699e-05/0.1406, allocations: 3.938 kB / 354 MB, free: 64 kB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.109e-05/0.1407, allocations: 4 kB / 354 MB, free: 60 kB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.068e-06/0.1407, allocations: 0 / 354 MB, free: 60 kB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.228e-06/0.1407, allocations: 0 / 354 MB, free: 60 kB / 286.1 MB Notification: Performance of sorting global known variables: time 6.682e-05/0.1407, allocations: 91.27 kB / 354.1 MB, free: 15.97 MB / 302.1 MB Notification: Performance of sort global known variables: time 5.51e-07/0.1408, allocations: 0 / 354.1 MB, free: 15.97 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002001/0.141, allocations: 4 kB / 354.1 MB, free: 15.96 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 (step.y,assignClock1.u,assignClock1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (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 Backend phase and start with SimCode phase: time 0.0001448/0.1411, allocations: 99.19 kB / 354.2 MB, free: 15.86 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001386/0.1413, allocations: 31.92 kB / 354.2 MB, free: 15.82 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.878e-06/0.1413, allocations: 8 kB / 354.2 MB, free: 15.82 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 6.82e-07/0.1413, allocations: 0 / 354.2 MB, free: 15.82 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002461/0.1415, allocations: 16.25 kB / 354.2 MB, free: 15.8 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003252/0.1419, allocations: 117.4 kB / 354.3 MB, free: 15.66 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003738/0.1423, allocations: 0.6768 MB / 355 MB, free: 14.96 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 1.599e-05/0.1423, allocations: 7.984 kB / 355 MB, free: 14.95 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.591e-05/0.1423, allocations: 7.438 kB / 355 MB, free: 14.94 MB / 302.1 MB Notification: Performance of SimCode: time 8.62e-07/0.1423, allocations: 0 / 355 MB, free: 14.94 MB / 302.1 MB Notification: Performance of Templates: time 0.002511/0.1448, allocations: 312.6 kB / 355.3 MB, free: 14.64 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TimeBasedStep.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TimeBasedStep.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TimeBasedStep.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TimeBasedStep.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TimeBasedStep.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TimeBasedStep -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TimeBasedStep.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TimeBasedStep_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/TimeBasedStep/TimeBasedStep.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TimeBasedStep.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches