Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 90] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse") translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse") [Timeout 660] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.002184/0.002184, allocations: 113.5 kB / 18.79 MB, free: 3.562 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002255/0.002255, allocations: 215.1 kB / 19.8 MB, free: 2.559 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.634/1.634, allocations: 230.4 MB / 251.1 MB, free: 8.43 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002146/0.002146, allocations: 75.81 kB / 368.9 MB, free: 6.047 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3747/0.3769, allocations: 53.31 MB / 422.3 MB, free: 7.84 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.003464/0.3803, allocations: 1.453 MB / 423.7 MB, free: 6.383 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002627/0.3806, allocations: 35.91 kB / 423.7 MB, free: 6.348 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.29e-05/0.3807, allocations: 0 / 423.7 MB, free: 6.348 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.393e-05/0.3807, allocations: 3.938 kB / 423.7 MB, free: 6.344 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.064e-05/0.3808, allocations: 3.938 kB / 423.7 MB, free: 6.34 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002909/0.3811, allocations: 35.22 kB / 423.8 MB, free: 6.309 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001221/0.3812, allocations: 43.91 kB / 423.8 MB, free: 6.266 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001217/0.3813, allocations: 3.984 kB / 423.8 MB, free: 6.262 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.04e-05/0.3814, allocations: 19.92 kB / 423.9 MB, free: 6.242 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.385e-05/0.3815, allocations: 19.92 kB / 423.9 MB, free: 6.223 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.439e-05/0.3815, allocations: 4 kB / 423.9 MB, free: 6.219 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.335e-05/0.3815, allocations: 4 kB / 423.9 MB, free: 6.215 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.167e-05/0.3815, allocations: 11.94 kB / 423.9 MB, free: 6.203 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.427e-05/0.3816, allocations: 23.84 kB / 423.9 MB, free: 6.18 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001376/0.3817, allocations: 31.89 kB / 423.9 MB, free: 6.148 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.054e-06/0.3817, allocations: 4 kB / 423.9 MB, free: 6.145 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.3817, allocations: 0 / 423.9 MB, free: 6.145 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.434e-06/0.3817, allocations: 0 / 423.9 MB, free: 6.145 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.0006738/0.3824, allocations: 354.8 kB / 424.3 MB, free: 5.75 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.215e-05/0.3825, allocations: 8.031 kB / 424.3 MB, free: 5.742 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.77e-05/0.3825, allocations: 8.891 kB / 424.3 MB, free: 5.734 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003409/0.3828, allocations: 184.3 kB / 424.5 MB, free: 5.516 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.000146/0.383, allocations: 34.27 kB / 424.5 MB, free: 5.477 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.375e-05/0.383, allocations: 12.36 kB / 424.5 MB, free: 5.465 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003636/0.3834, allocations: 127.8 kB / 424.7 MB, free: 5.328 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.761e-05/0.3834, allocations: 11.94 kB / 424.7 MB, free: 5.316 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.608e-05/0.3834, allocations: 0 / 424.7 MB, free: 5.316 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.124e-06/0.3834, allocations: 0 / 424.7 MB, free: 5.316 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.49e-05/0.3835, allocations: 15.98 kB / 424.7 MB, free: 5.301 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002297/0.3837, allocations: 161.6 kB / 424.8 MB, free: 5.094 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002665/0.384, allocations: 139.7 kB / 425 MB, free: 4.93 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.666e-05/0.3841, allocations: 28.84 kB / 425 MB, free: 4.898 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.288e-05/0.3841, allocations: 0 / 425 MB, free: 4.898 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.083e-05/0.3841, allocations: 30.56 kB / 425 MB, free: 4.859 MB / 334.1 MB Notification: Performance of pre-optimization done (n=5): time 1.192e-06/0.3841, allocations: 0 / 425 MB, free: 4.859 MB / 334.1 MB Notification: Performance of matching and sorting (n=5): time 0.000252/0.3844, allocations: 77.56 kB / 425.1 MB, free: 4.777 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.487e-05/0.3844, allocations: 71.33 kB / 425.2 MB, free: 4.695 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001263/0.3846, allocations: 97.86 kB / 425.3 MB, free: 4.59 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.796e-05/0.3846, allocations: 33.7 kB / 425.3 MB, free: 4.551 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.232e-05/0.3847, allocations: 84.12 kB / 425.4 MB, free: 4.465 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.22e-05/0.3847, allocations: 7.891 kB / 425.4 MB, free: 4.457 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.678e-05/0.3847, allocations: 17.72 kB / 425.4 MB, free: 4.434 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002157/0.3849, allocations: 322.8 kB / 425.7 MB, free: 4.109 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.231e-05/0.385, allocations: 12 kB / 425.7 MB, free: 4.098 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.61e-05/0.385, allocations: 36.3 kB / 425.8 MB, free: 4.047 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.852e-05/0.3851, allocations: 48.22 kB / 425.8 MB, free: 3.984 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.029e-06/0.3851, allocations: 4 kB / 425.8 MB, free: 3.98 MB / 334.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001234/0.3852, allocations: 73.52 kB / 425.9 MB, free: 3.902 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.026e-05/0.3852, allocations: 7.938 kB / 425.9 MB, free: 3.895 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.504e-06/0.3852, allocations: 4 kB / 425.9 MB, free: 3.891 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.756e-05/0.3853, allocations: 0 / 425.9 MB, free: 3.891 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.042e-05/0.3853, allocations: 4 kB / 425.9 MB, free: 3.887 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.118e-05/0.3853, allocations: 7.938 kB / 425.9 MB, free: 3.879 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.839e-05/0.3854, allocations: 8.156 kB / 425.9 MB, free: 3.871 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.494e-06/0.3854, allocations: 4 kB / 425.9 MB, free: 3.867 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 0.0001054/0.3855, allocations: 113.8 kB / 426.1 MB, free: 3.746 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001145/0.3856, allocations: 62.06 kB / 426.1 MB, free: 3.68 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.03e-05/0.3856, allocations: 11.95 kB / 426.1 MB, free: 3.66 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.543e-06/0.3856, allocations: 0 / 426.1 MB, free: 3.66 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.428e-06/0.3856, allocations: 0 / 426.1 MB, free: 3.66 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.689e-06/0.3856, allocations: 4 kB / 426.1 MB, free: 3.656 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001496/0.3858, allocations: 157.7 kB / 426.3 MB, free: 3.453 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.346e-06/0.3858, allocations: 8 kB / 426.3 MB, free: 3.445 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.065e-06/0.3858, allocations: 3.938 kB / 426.3 MB, free: 3.441 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.476e-06/0.3858, allocations: 3.938 kB / 426.3 MB, free: 3.438 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.027e-06/0.3858, allocations: 0 / 426.3 MB, free: 3.438 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.022e-06/0.3858, allocations: 0 / 426.3 MB, free: 3.438 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.3858, allocations: 3.938 kB / 426.3 MB, free: 3.434 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001564/0.386, allocations: 97.06 kB / 426.4 MB, free: 3.32 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.587e-05/0.386, allocations: 77.11 kB / 426.5 MB, free: 3.227 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.371e-05/0.3861, allocations: 11.94 kB / 426.5 MB, free: 3.215 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.437e-05/0.3861, allocations: 0 / 426.5 MB, free: 3.215 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.406e-06/0.3861, allocations: 144 / 426.5 MB, free: 3.215 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.08e-05/0.3861, allocations: 8 kB / 426.5 MB, free: 3.207 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.433e-05/0.3862, allocations: 83.27 kB / 426.6 MB, free: 3.125 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3862, allocations: 0 / 426.6 MB, free: 3.125 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002047/0.3864, allocations: 12 kB / 426.6 MB, free: 3.113 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.0001399/0.3865, allocations: 102.2 kB / 426.7 MB, free: 3.008 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001546/0.3867, allocations: 43.86 kB / 426.7 MB, free: 2.965 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.195e-06/0.3867, allocations: 0 / 426.7 MB, free: 2.965 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.71e-07/0.3867, allocations: 0 / 426.7 MB, free: 2.965 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009224/0.3876, allocations: 0.7208 MB / 427.4 MB, free: 2.223 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003854/0.388, allocations: 133.5 kB / 427.6 MB, free: 2.066 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000406/0.3884, allocations: 0.6849 MB / 428.3 MB, free: 1.355 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 2.922e-05/0.3884, allocations: 0 / 428.3 MB, free: 1.355 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.991e-05/0.3884, allocations: 11.44 kB / 428.3 MB, free: 1.344 MB / 334.1 MB Notification: Performance of SimCode: time 5.31e-07/0.3885, allocations: 0 / 428.3 MB, free: 1.344 MB / 334.1 MB Notification: Performance of Templates: time 0.00374/0.3922, allocations: 0.6928 MB / 429 MB, free: 0.6602 MB / 334.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.sim & ./Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/TickBasedPulse/TickBasedPulse.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] Reference file matches