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.001692/0.001692, allocations: 99.02 kB / 16.31 MB, free: 6.391 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.001724/0.001724, allocations: 189 kB / 17.24 MB, free: 5.922 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.724/1.724, allocations: 205.1 MB / 223.1 MB, free: 12.31 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.09293/0.09293, allocations: 12.58 MB / 283.1 MB, free: 15.49 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.002257/0.002258, allocations: 87.88 kB / 343.5 MB, free: 2.953 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3205/0.3228, allocations: 49.39 MB / 392.9 MB, free: 49.17 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.00268/0.3255, allocations: 1.431 MB / 394.3 MB, free: 48.19 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002323/0.3258, allocations: 44.42 kB / 394.4 MB, free: 48.16 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.872e-05/0.3259, allocations: 4 kB / 394.4 MB, free: 48.15 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 7.121e-05/0.3259, allocations: 5.5 kB / 394.4 MB, free: 48.15 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 6.982e-05/0.326, allocations: 4.734 kB / 394.4 MB, free: 48.14 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003262/0.3263, allocations: 25.91 kB / 394.4 MB, free: 48.13 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001265/0.3265, allocations: 36.48 kB / 394.4 MB, free: 48.12 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001678/0.3266, allocations: 10.94 kB / 394.4 MB, free: 48.11 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.732e-05/0.3267, allocations: 16.67 kB / 394.5 MB, free: 48.11 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.68e-05/0.3268, allocations: 17.73 kB / 394.5 MB, free: 48.1 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.742e-05/0.3268, allocations: 3.656 kB / 394.5 MB, free: 48.1 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.898e-05/0.3269, allocations: 3.438 kB / 394.5 MB, free: 48.1 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.393e-05/0.3269, allocations: 19.88 kB / 394.5 MB, free: 48.08 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 4.991e-05/0.327, allocations: 18.58 kB / 394.5 MB, free: 48.07 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001275/0.3271, allocations: 39.58 kB / 394.6 MB, free: 48.05 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.959e-06/0.3271, allocations: 1.094 kB / 394.6 MB, free: 48.05 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.284e-06/0.3271, allocations: 0 / 394.6 MB, free: 48.05 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.103e-06/0.3271, allocations: 0 / 394.6 MB, free: 48.05 MB / 318.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.0005299/0.3277, allocations: 350.7 kB / 394.9 MB, free: 47.68 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.299e-05/0.3277, allocations: 9.438 kB / 394.9 MB, free: 47.68 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.198e-05/0.3278, allocations: 8 kB / 394.9 MB, free: 47.68 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002183/0.328, allocations: 191.3 kB / 395.1 MB, free: 47.46 MB / 318.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.000161/0.3282, allocations: 34.5 kB / 395.1 MB, free: 47.43 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.633e-05/0.3282, allocations: 2.906 kB / 395.1 MB, free: 47.43 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003225/0.3285, allocations: 124.7 kB / 395.3 MB, free: 47.36 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.033e-05/0.3285, allocations: 3.938 kB / 395.3 MB, free: 47.35 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.287e-05/0.3286, allocations: 4 kB / 395.3 MB, free: 47.35 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.214e-06/0.3286, allocations: 6.906 kB / 395.3 MB, free: 47.34 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.882e-05/0.3287, allocations: 16.8 kB / 395.3 MB, free: 47.34 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00013/0.3288, allocations: 159.3 kB / 395.5 MB, free: 47.14 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000199/0.329, allocations: 139.9 kB / 395.6 MB, free: 47.01 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.841e-05/0.3291, allocations: 26.97 kB / 395.6 MB, free: 47 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.212e-05/0.3291, allocations: 0 / 395.6 MB, free: 47 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.856e-05/0.3291, allocations: 36.42 kB / 395.6 MB, free: 46.95 MB / 318.1 MB Notification: Performance of pre-optimization done (n=5): time 1.001e-06/0.3291, allocations: 0 / 395.6 MB, free: 46.95 MB / 318.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002151/0.3293, allocations: 76.98 kB / 395.7 MB, free: 46.9 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.211e-05/0.3294, allocations: 55.91 kB / 395.8 MB, free: 46.84 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.499e-05/0.3295, allocations: 108.7 kB / 395.9 MB, free: 46.73 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.083e-05/0.3295, allocations: 29.64 kB / 395.9 MB, free: 46.7 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.054e-05/0.3295, allocations: 86.11 kB / 396 MB, free: 46.61 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.642e-05/0.3295, allocations: 13.94 kB / 396 MB, free: 46.6 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.303e-05/0.3296, allocations: 25.22 kB / 396 MB, free: 46.58 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.64e-05/0.3296, allocations: 313.4 kB / 396.3 MB, free: 46.27 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.051e-05/0.3297, allocations: 9.562 kB / 396.4 MB, free: 46.26 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.262e-05/0.3297, allocations: 38.23 kB / 396.4 MB, free: 46.22 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.965e-05/0.3298, allocations: 46.86 kB / 396.4 MB, free: 46.17 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.3298, allocations: 1.094 kB / 396.4 MB, free: 46.17 MB / 318.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001205/0.3299, allocations: 80.25 kB / 396.5 MB, free: 46.11 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.763e-05/0.3299, allocations: 9.188 kB / 396.5 MB, free: 46.11 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.094e-06/0.3299, allocations: 1.781 kB / 396.5 MB, free: 46.11 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.629e-05/0.33, allocations: 5.281 kB / 396.5 MB, free: 46.11 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.646e-05/0.33, allocations: 5.766 kB / 396.5 MB, free: 46.11 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.565e-06/0.33, allocations: 5.219 kB / 396.5 MB, free: 46.1 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.554e-05/0.33, allocations: 3.281 kB / 396.5 MB, free: 46.1 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.731e-06/0.3301, allocations: 2.25 kB / 396.5 MB, free: 46.1 MB / 318.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 6.147e-05/0.3301, allocations: 119.8 kB / 396.7 MB, free: 45.98 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.42e-05/0.3302, allocations: 64.89 kB / 396.7 MB, free: 45.93 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.981e-05/0.3303, allocations: 5.188 kB / 396.7 MB, free: 45.93 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.747e-06/0.3303, allocations: 5.906 kB / 396.7 MB, free: 45.93 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.067e-06/0.3303, allocations: 0 / 396.7 MB, free: 45.93 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.875e-06/0.3303, allocations: 0 / 396.7 MB, free: 45.93 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.186e-05/0.3304, allocations: 159 kB / 396.9 MB, free: 45.74 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.71e-07/0.3304, allocations: 0 / 396.9 MB, free: 45.74 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.273e-06/0.3304, allocations: 5.797 kB / 396.9 MB, free: 45.73 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.715e-06/0.3304, allocations: 5.438 kB / 396.9 MB, free: 45.73 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.306e-06/0.3304, allocations: 0.6094 kB / 396.9 MB, free: 45.73 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.334e-06/0.3304, allocations: 2.125 kB / 396.9 MB, free: 45.73 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.41e-07/0.3304, allocations: 0 / 396.9 MB, free: 45.73 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001173/0.3305, allocations: 94.52 kB / 397 MB, free: 45.64 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.394e-05/0.3306, allocations: 84.73 kB / 397.1 MB, free: 45.55 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.047e-05/0.3306, allocations: 9.953 kB / 397.1 MB, free: 45.54 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.183e-05/0.3306, allocations: 3.922 kB / 397.1 MB, free: 45.54 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.015e-06/0.3306, allocations: 0 / 397.1 MB, free: 45.54 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.113e-06/0.3307, allocations: 1.984 kB / 397.1 MB, free: 45.54 MB / 318.1 MB Notification: Performance of sorting global known variables: time 3.074e-05/0.3307, allocations: 90.58 kB / 397.2 MB, free: 45.46 MB / 318.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.3307, allocations: 0 / 397.2 MB, free: 45.46 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0001904/0.3309, allocations: 6.938 kB / 397.2 MB, free: 45.46 MB / 318.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 9.798e-05/0.331, allocations: 101.6 kB / 397.3 MB, free: 45.36 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001285/0.3311, allocations: 36.03 kB / 397.3 MB, free: 45.35 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.3311, allocations: 0 / 397.3 MB, free: 45.35 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 4.21e-07/0.3311, allocations: 0 / 397.3 MB, free: 45.35 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005216/0.3317, allocations: 0.7236 MB / 398.1 MB, free: 44.65 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002538/0.3319, allocations: 131.9 kB / 398.2 MB, free: 44.53 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000133/0.3321, allocations: 0.6886 MB / 398.9 MB, free: 43.83 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 2.113e-05/0.3321, allocations: 8.141 kB / 398.9 MB, free: 43.82 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.014e-05/0.3321, allocations: 11 kB / 398.9 MB, free: 43.82 MB / 318.1 MB Notification: Performance of SimCode: time 1.9e-07/0.3321, allocations: 0 / 398.9 MB, free: 43.82 MB / 318.1 MB Notification: Performance of Templates: time 0.002773/0.3349, allocations: 0.6737 MB / 399.6 MB, free: 43.59 MB / 318.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse.makefile (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) 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches