Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse.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/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/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(Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|assignClock1.y|pulse.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse") translateModel(Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|assignClock1.y|pulse.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007257/0.0007257, allocations: 103 kB / 16.07 MB, free: 32 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0007732/0.0007733, allocations: 181.1 kB / 16.97 MB, free: 6.875 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.215/1.215, allocations: 205.4 MB / 223.1 MB, free: 5.516 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.06479/0.06479, allocations: 12.6 MB / 284 MB, free: 8.582 MB / 238.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: Modelica_Synchronous 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.0006329/0.0006329, allocations: 24 kB / 345.2 MB, free: 20.89 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07636/0.077, allocations: 50.39 MB / 395.6 MB, free: 2.418 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.001637/0.0787, allocations: 1.149 MB / 396.7 MB, free: 1.258 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001772/0.0789, allocations: 35.91 kB / 396.7 MB, free: 1.223 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.753e-05/0.07897, allocations: 0 / 396.7 MB, free: 1.223 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 1.892e-05/0.079, allocations: 7.922 kB / 396.7 MB, free: 1.215 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 5.146e-05/0.07906, allocations: 0 / 396.7 MB, free: 1.215 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002234/0.07929, allocations: 27.97 kB / 396.8 MB, free: 1.188 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 8.007e-05/0.07938, allocations: 43.86 kB / 396.8 MB, free: 1.145 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.869e-05/0.07947, allocations: 8 kB / 396.8 MB, free: 1.137 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.91e-05/0.07953, allocations: 15.92 kB / 396.8 MB, free: 1.121 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.827e-05/0.07957, allocations: 19.91 kB / 396.9 MB, free: 1.102 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.528e-05/0.07959, allocations: 0 / 396.9 MB, free: 1.102 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.666e-06/0.07961, allocations: 4 kB / 396.9 MB, free: 1.098 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 1.756e-05/0.07963, allocations: 3.938 kB / 396.9 MB, free: 1.094 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 4.903e-05/0.07969, allocations: 41.62 kB / 396.9 MB, free: 1.047 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 7.521e-05/0.07977, allocations: 35.88 kB / 396.9 MB, free: 1.012 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.587e-06/0.07978, allocations: 0 / 396.9 MB, free: 1.012 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.07979, allocations: 4 kB / 396.9 MB, free: 1.008 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.69e-06/0.0798, allocations: 0 / 396.9 MB, free: 1.008 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0003733/0.08017, allocations: 347.7 kB / 397.3 MB, free: 0.6172 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.411e-05/0.08021, allocations: 12.03 kB / 397.3 MB, free: 0.6055 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.216e-05/0.08025, allocations: 4.844 kB / 397.3 MB, free: 0.6016 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001565/0.08041, allocations: 176.4 kB / 397.5 MB, free: 400 kB / 286.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.0001283/0.08055, allocations: 38.25 kB / 397.5 MB, free: 356 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.599e-05/0.08057, allocations: 8.312 kB / 397.5 MB, free: 348 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002513/0.08083, allocations: 127.8 kB / 397.6 MB, free: 208 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.255e-06/0.08085, allocations: 3.938 kB / 397.6 MB, free: 204 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.917e-06/0.08086, allocations: 0 / 397.6 MB, free: 204 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.088e-06/0.08087, allocations: 0 / 397.6 MB, free: 204 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.241e-05/0.08093, allocations: 23.88 kB / 397.7 MB, free: 180 kB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001349/0.08107, allocations: 161.7 kB / 397.8 MB, free: 15.97 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001842/0.08126, allocations: 139.8 kB / 398 MB, free: 15.8 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.695e-05/0.08132, allocations: 24.86 kB / 398 MB, free: 15.78 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.528e-06/0.08134, allocations: 4 kB / 398 MB, free: 15.77 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.657e-05/0.08136, allocations: 30.56 kB / 398 MB, free: 15.73 MB / 302.1 MB Notification: Performance of pre-optimization done (n=5): time 1.142e-06/0.08137, allocations: 0 / 398 MB, free: 15.73 MB / 302.1 MB Notification: Performance of matching and sorting (n=5): time 0.0001887/0.08156, allocations: 77.55 kB / 398.1 MB, free: 15.65 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.758e-05/0.08162, allocations: 63.41 kB / 398.2 MB, free: 15.58 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.666e-05/0.08169, allocations: 106.2 kB / 398.3 MB, free: 15.46 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.012e-05/0.08172, allocations: 33.64 kB / 398.3 MB, free: 15.43 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.012e-05/0.08175, allocations: 88.12 kB / 398.4 MB, free: 15.34 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.265e-05/0.08177, allocations: 3.906 kB / 398.4 MB, free: 15.33 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.508e-05/0.0818, allocations: 17.72 kB / 398.4 MB, free: 15.31 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.811e-05/0.08189, allocations: 314.8 kB / 398.7 MB, free: 14.99 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.582e-05/0.08192, allocations: 8 kB / 398.7 MB, free: 14.98 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.279e-05/0.08197, allocations: 48.27 kB / 398.8 MB, free: 14.92 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.882e-05/0.08203, allocations: 48.17 kB / 398.8 MB, free: 14.86 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.176e-06/0.08204, allocations: 8 kB / 398.8 MB, free: 14.85 MB / 302.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 8.805e-05/0.08213, allocations: 65.62 kB / 398.9 MB, free: 14.78 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.369e-05/0.08215, allocations: 7.938 kB / 398.9 MB, free: 14.77 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.731e-06/0.08216, allocations: 4 kB / 398.9 MB, free: 14.77 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.013e-05/0.08218, allocations: 0 / 398.9 MB, free: 14.77 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.18e-05/0.08222, allocations: 12 kB / 398.9 MB, free: 14.76 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.131e-06/0.08224, allocations: 4 kB / 398.9 MB, free: 14.75 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.489e-05/0.08227, allocations: 7.938 kB / 398.9 MB, free: 14.75 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.853e-06/0.08228, allocations: 12.14 kB / 398.9 MB, free: 14.73 MB / 302.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 7.367e-05/0.08236, allocations: 117.8 kB / 399 MB, free: 14.61 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.046e-05/0.08246, allocations: 65.62 kB / 399.1 MB, free: 14.54 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.81e-05/0.08248, allocations: 7.906 kB / 399.1 MB, free: 14.53 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.533e-06/0.08249, allocations: 0 / 399.1 MB, free: 14.53 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.266e-06/0.0825, allocations: 0 / 399.1 MB, free: 14.53 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.114e-06/0.0825, allocations: 0 / 399.1 MB, free: 14.53 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.293e-05/0.0826, allocations: 165.6 kB / 399.3 MB, free: 14.32 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.08261, allocations: 0 / 399.3 MB, free: 14.32 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.691e-06/0.08262, allocations: 4 kB / 399.3 MB, free: 14.32 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.276e-06/0.08263, allocations: 7.938 kB / 399.3 MB, free: 14.31 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.713e-06/0.08264, allocations: 0 / 399.3 MB, free: 14.31 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.294e-06/0.08265, allocations: 3.984 kB / 399.3 MB, free: 14.3 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.08265, allocations: 0 / 399.3 MB, free: 14.3 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000119/0.08278, allocations: 89.03 kB / 399.4 MB, free: 14.2 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.215e-05/0.08282, allocations: 81.05 kB / 399.5 MB, free: 14.1 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.871e-05/0.08284, allocations: 15.88 kB / 399.5 MB, free: 14.09 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.867e-05/0.08289, allocations: 0 / 399.5 MB, free: 14.09 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.787e-06/0.0829, allocations: 7.984 kB / 399.5 MB, free: 14.08 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.782e-06/0.08291, allocations: 4 kB / 399.5 MB, free: 14.07 MB / 302.1 MB Notification: Performance of sorting global known variables: time 4.446e-05/0.08296, allocations: 87.28 kB / 399.6 MB, free: 13.99 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.08296, allocations: 3.938 kB / 399.6 MB, free: 13.98 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0001847/0.08315, allocations: 8 kB / 399.6 MB, free: 13.98 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: 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 8.017e-05/0.08324, allocations: 95.25 kB / 399.7 MB, free: 13.88 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 9.599e-05/0.08334, allocations: 32.17 kB / 399.7 MB, free: 13.84 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.08335, allocations: 4.062 kB / 399.7 MB, free: 13.84 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 5.31e-07/0.08336, allocations: 0 / 399.7 MB, free: 13.84 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005923/0.08395, allocations: 0.7258 MB / 400.4 MB, free: 13.09 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002449/0.08421, allocations: 132.6 kB / 400.6 MB, free: 12.93 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002065/0.08443, allocations: 0.6888 MB / 401.3 MB, free: 12.21 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 1.775e-05/0.08445, allocations: 0 / 401.3 MB, free: 12.21 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.735e-05/0.08448, allocations: 11.44 kB / 401.3 MB, free: 12.2 MB / 302.1 MB Notification: Performance of SimCode: time 2.11e-07/0.08448, allocations: 0 / 401.3 MB, free: 12.2 MB / 302.1 MB Notification: Performance of Templates: time 0.002345/0.08683, allocations: 0.6367 MB / 401.9 MB, free: 11.57 MB / 302.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse.makefile Environment - environmentSimulation: (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe 2>&1) Environment - environmentSimulation: diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches