Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001244/0.001244, allocations: 70.03 kB / 21.24 MB, free: 0.5547 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001258/0.001258, allocations: 153.6 kB / 24.49 MB, free: 3.852 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.502/1.502, allocations: 173.4 MB / 201.1 MB, free: 12.69 MB / 190.1 MB " [Timeout remaining time 178] 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.TickBasedPulse,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse") translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001573/0.001573, allocations: 46.3 kB / 319.4 MB, free: 3.27 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0932/0.09478, allocations: 52.16 MB / 371.6 MB, free: 7.352 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.00286/0.09764, allocations: 1.447 MB / 373 MB, free: 5.898 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002072/0.09784, allocations: 43.84 kB / 373.1 MB, free: 5.855 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.241e-05/0.09791, allocations: 0 / 373.1 MB, free: 5.855 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 2.97e-05/0.09793, allocations: 3.938 kB / 373.1 MB, free: 5.852 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 4.953e-05/0.09798, allocations: 3.938 kB / 373.1 MB, free: 5.848 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002442/0.09823, allocations: 31.94 kB / 373.1 MB, free: 5.816 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 8.8e-05/0.09832, allocations: 35.92 kB / 373.1 MB, free: 5.781 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001014/0.09842, allocations: 15.88 kB / 373.1 MB, free: 5.766 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.336e-05/0.09847, allocations: 19.97 kB / 373.2 MB, free: 5.746 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.853e-05/0.09851, allocations: 15.92 kB / 373.2 MB, free: 5.73 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.827e-05/0.09853, allocations: 4 kB / 373.2 MB, free: 5.727 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.198e-05/0.09854, allocations: 4 kB / 373.2 MB, free: 5.723 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.41e-05/0.09856, allocations: 15.94 kB / 373.2 MB, free: 5.707 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.381e-05/0.0986, allocations: 15.92 kB / 373.2 MB, free: 5.691 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 9.737e-05/0.0987, allocations: 35.88 kB / 373.3 MB, free: 5.656 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.236e-06/0.0987, allocations: 0 / 373.3 MB, free: 5.656 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.0987, allocations: 3.938 kB / 373.3 MB, free: 5.652 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.306e-06/0.09871, allocations: 0 / 373.3 MB, free: 5.652 MB / 334.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.0004434/0.09915, allocations: 282.2 kB / 373.5 MB, free: 5.344 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.444e-05/0.09919, allocations: 8.031 kB / 373.5 MB, free: 5.336 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.314e-05/0.09922, allocations: 4.938 kB / 373.5 MB, free: 5.332 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002129/0.09943, allocations: 122.5 kB / 373.7 MB, free: 5.188 MB / 334.1 MB Error: Internal error - BackendDAEOptimize.makeEquationToResidualExp failed to transform equation: pulse.startOutput = previous(pulse.counter) >= pulse.startTick - 1 to residual form! Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001038/0.09954, allocations: 38.25 kB / 373.7 MB, free: 5.145 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.878e-05/0.09955, allocations: 8.375 kB / 373.7 MB, free: 5.137 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003041/0.09986, allocations: 131.8 kB / 373.8 MB, free: 4.996 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.152e-05/0.09987, allocations: 3.938 kB / 373.8 MB, free: 4.992 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.137e-06/0.09988, allocations: 0 / 373.8 MB, free: 4.992 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.988e-06/0.09988, allocations: 0 / 373.8 MB, free: 4.992 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.665e-05/0.09994, allocations: 19.98 kB / 373.9 MB, free: 4.973 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000119/0.1001, allocations: 101.3 kB / 374 MB, free: 4.844 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001685/0.1002, allocations: 66.61 kB / 374 MB, free: 4.77 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.067e-05/0.1003, allocations: 20.86 kB / 374 MB, free: 4.746 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.181e-05/0.1003, allocations: 4 kB / 374.1 MB, free: 4.742 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.19e-05/0.1003, allocations: 30.56 kB / 374.1 MB, free: 4.703 MB / 334.1 MB Notification: Performance of pre-optimization done (n=5): time 1.122e-06/0.1003, allocations: 0 / 374.1 MB, free: 4.703 MB / 334.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002145/0.1005, allocations: 85.56 kB / 374.2 MB, free: 4.613 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.256e-05/0.1006, allocations: 59.34 kB / 374.2 MB, free: 4.543 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.675e-05/0.1007, allocations: 109.8 kB / 374.3 MB, free: 4.426 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.85e-05/0.1007, allocations: 29.7 kB / 374.4 MB, free: 4.391 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.99e-05/0.1008, allocations: 84.14 kB / 374.4 MB, free: 4.305 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.207e-05/0.1008, allocations: 11.89 kB / 374.5 MB, free: 4.293 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.667e-05/0.1008, allocations: 21.72 kB / 374.5 MB, free: 4.266 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.00014/0.101, allocations: 314.8 kB / 374.8 MB, free: 3.949 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.714e-05/0.101, allocations: 8 kB / 374.8 MB, free: 3.941 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.521e-05/0.101, allocations: 40.28 kB / 374.8 MB, free: 3.887 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.254e-05/0.1011, allocations: 48.23 kB / 374.9 MB, free: 3.824 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.1011, allocations: 4 kB / 374.9 MB, free: 3.82 MB / 334.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001129/0.1012, allocations: 73.56 kB / 375 MB, free: 3.742 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.363e-05/0.1012, allocations: 6.656 kB / 375 MB, free: 3.738 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.137e-06/0.1012, allocations: 0 / 375 MB, free: 3.738 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.995e-05/0.1012, allocations: 7.938 kB / 375 MB, free: 3.73 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.984e-05/0.1013, allocations: 4 kB / 375 MB, free: 3.727 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.819e-06/0.1013, allocations: 0 / 375 MB, free: 3.727 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.554e-05/0.1013, allocations: 4 kB / 375 MB, free: 3.723 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.058e-06/0.1013, allocations: 0 / 375 MB, free: 3.723 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 7 ($CLKPRE.pulse.startOutput,pulse.startOutput,$CLKPRE.pulse.counter,pulse.counter,pulse.y,assignClock1.y,assignClock1.u) * Number of discrete states: 0 () * Number of clocked states: 2 (pulse.startOutput,pulse.counter) * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 7 * 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 9.356e-05/0.1014, allocations: 133.9 kB / 375.1 MB, free: 3.582 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001056/0.1015, allocations: 61.64 kB / 375.2 MB, free: 3.516 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.59e-05/0.1015, allocations: 12.06 kB / 375.2 MB, free: 3.5 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.402e-06/0.1015, allocations: 0 / 375.2 MB, free: 3.5 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.096e-06/0.1015, allocations: 0 / 375.2 MB, free: 3.5 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.485e-06/0.1015, allocations: 96 / 375.2 MB, free: 3.5 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.995e-05/0.1016, allocations: 113.7 kB / 375.3 MB, free: 3.359 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.42e-07/0.1016, allocations: 0 / 375.3 MB, free: 3.359 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.546e-06/0.1016, allocations: 4 kB / 375.3 MB, free: 3.355 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.709e-06/0.1016, allocations: 4 kB / 375.3 MB, free: 3.352 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.973e-06/0.1016, allocations: 4 kB / 375.3 MB, free: 3.348 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.086e-06/0.1017, allocations: 3.938 kB / 375.3 MB, free: 3.344 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.01e-07/0.1017, allocations: 0 / 375.3 MB, free: 3.344 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001417/0.1018, allocations: 97.02 kB / 375.4 MB, free: 3.23 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.007e-05/0.1018, allocations: 3.984 kB / 375.4 MB, free: 3.227 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.733e-05/0.1018, allocations: 7.938 kB / 375.4 MB, free: 3.219 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.453e-05/0.1019, allocations: 3.938 kB / 375.4 MB, free: 3.215 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.074e-06/0.1019, allocations: 0 / 375.4 MB, free: 3.215 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.012e-05/0.1019, allocations: 8 kB / 375.4 MB, free: 3.207 MB / 334.1 MB Notification: Performance of sorting global known variables: time 4.881e-05/0.1019, allocations: 83.27 kB / 375.5 MB, free: 3.125 MB / 334.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.1019, allocations: 0 / 375.5 MB, free: 3.125 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002023/0.1021, allocations: 16 kB / 375.5 MB, free: 3.109 MB / 334.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: 5 (assignClock1.u,assignClock1.y,pulse.y,pulse.counter,pulse.startOutput) * Number of discrete states: 0 () * Number of clocked states: 2 (pulse.counter,pulse.startOutput) * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 1 * 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.0001042/0.1022, allocations: 99.19 kB / 375.6 MB, free: 3.004 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001169/0.1024, allocations: 35.92 kB / 375.7 MB, free: 2.969 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.1024, allocations: 0 / 375.7 MB, free: 2.969 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.11e-07/0.1024, allocations: 0 / 375.7 MB, free: 2.969 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000716/0.1031, allocations: 0.718 MB / 376.4 MB, free: 2.227 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002901/0.1034, allocations: 129.8 kB / 376.5 MB, free: 2.074 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.712e-05/0.1034, allocations: 71.34 kB / 376.6 MB, free: 1.984 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 1.85e-05/0.1034, allocations: 3.938 kB / 376.6 MB, free: 1.98 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.485e-05/0.1035, allocations: 12.5 kB / 376.6 MB, free: 1.965 MB / 334.1 MB Notification: Performance of SimCode: time 3.4e-07/0.1035, allocations: 0 / 376.6 MB, free: 1.965 MB / 334.1 MB Notification: Performance of Templates: time 0.003199/0.1067, allocations: 0.7608 MB / 377.3 MB, free: 1.215 MB / 334.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse -abortSlowSimulation -alarm=480 -s ida -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/TickBasedPulse/TickBasedPulse.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.19632286997512]