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/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/Complex 3.2.3+maint.om/package.mo): time 0.0009184/0.0009185, allocations: 176.7 kB / 8.051 MB, free: 1.023 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.308/1.308, allocations: 205.3 MB / 213.8 MB, free: 1.742 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007841/0.0007842, allocations: 86.2 kB / 261.8 MB, free: 1.684 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.06616/0.06616, allocations: 12.6 MB / 322.4 MB, free: 15.2 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.699e-05/1.702e-05, allocations: 4 kB / 378.9 MB, free: 6.523 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2091/0.2092, allocations: 50.37 MB / 429.3 MB, free: 18.36 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.0888/0.298, allocations: 76.66 MB / 0.4941 GB, free: 5.594 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002004/0.2983, allocations: 79.94 kB / 0.4942 GB, free: 5.516 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.002149/0.3004, allocations: 0.8616 MB / 0.495 GB, free: 4.656 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.152e-06/0.3004, allocations: 0 / 0.495 GB, free: 4.656 MB / 346.7 MB Notification: Performance of Transformations before backend: time 9.007e-06/0.3005, allocations: 0 / 0.495 GB, free: 4.656 MB / 346.7 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.0002962/0.3008, allocations: 338.5 kB / 0.4953 GB, free: 4.281 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.499e-05/0.3008, allocations: 8.031 kB / 0.4954 GB, free: 4.273 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.382e-05/0.3008, allocations: 4 kB / 0.4954 GB, free: 4.27 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001522/0.301, allocations: 178.9 kB / 0.4955 GB, free: 4.055 MB / 346.7 MB Error: Internal error - BackendDAEOptimize.makeEquationToResidualExp failed to transform equation: pulse.startOutput = previous(pulse.counter) >= -1 + pulse.startTick to residual form! Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001017/0.3011, allocations: 37.06 kB / 0.4956 GB, free: 4.016 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.881e-05/0.3011, allocations: 15.89 kB / 0.4956 GB, free: 4 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 6.747e-05/0.3012, allocations: 12 kB / 0.4956 GB, free: 3.988 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001891/0.3014, allocations: 115.2 kB / 0.4957 GB, free: 3.863 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.284e-06/0.3014, allocations: 4 kB / 0.4957 GB, free: 3.859 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.616e-06/0.3014, allocations: 0 / 0.4957 GB, free: 3.859 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.837e-06/0.3014, allocations: 0 / 0.4957 GB, free: 3.859 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001076/0.3016, allocations: 138.2 kB / 0.4958 GB, free: 3.688 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001525/0.3017, allocations: 127.8 kB / 0.496 GB, free: 3.535 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.963e-05/0.3018, allocations: 24.92 kB / 0.496 GB, free: 3.508 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.247e-06/0.3018, allocations: 0 / 0.496 GB, free: 3.508 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.827e-05/0.3018, allocations: 38.52 kB / 0.496 GB, free: 3.461 MB / 346.7 MB Notification: Performance of pre-optimization done (n=5): time 9.72e-07/0.3018, allocations: 0 / 0.496 GB, free: 3.461 MB / 346.7 MB Notification: Performance of matching and sorting (n=5): time 0.0001311/0.302, allocations: 53.67 kB / 0.4961 GB, free: 3.402 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.205e-05/0.302, allocations: 59.41 kB / 0.4961 GB, free: 3.332 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.611e-05/0.3021, allocations: 92.98 kB / 0.4962 GB, free: 3.234 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.366e-05/0.3021, allocations: 29.7 kB / 0.4962 GB, free: 3.199 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.987e-05/0.3021, allocations: 88.14 kB / 0.4963 GB, free: 3.109 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.3e-05/0.3021, allocations: 3.906 kB / 0.4963 GB, free: 3.105 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.965e-06/0.3021, allocations: 0 / 0.4963 GB, free: 3.105 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.857e-05/0.3022, allocations: 318.8 kB / 0.4966 GB, free: 2.785 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.29e-05/0.3023, allocations: 4 kB / 0.4966 GB, free: 2.781 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.95e-05/0.3023, allocations: 36.3 kB / 0.4967 GB, free: 2.73 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.433e-05/0.3023, allocations: 15.94 kB / 0.4967 GB, free: 2.715 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.086e-06/0.3023, allocations: 4 kB / 0.4967 GB, free: 2.711 MB / 346.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 8.091e-05/0.3024, allocations: 57.62 kB / 0.4967 GB, free: 2.648 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.263e-05/0.3024, allocations: 8 kB / 0.4968 GB, free: 2.641 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.918e-06/0.3025, allocations: 0 / 0.4968 GB, free: 2.641 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.246e-05/0.3025, allocations: 12.05 kB / 0.4968 GB, free: 2.629 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.994e-05/0.3025, allocations: 7.984 kB / 0.4968 GB, free: 2.621 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.933e-06/0.3025, allocations: 8.141 kB / 0.4968 GB, free: 2.613 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.563e-05/0.3026, allocations: 7.844 kB / 0.4968 GB, free: 2.605 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.161e-06/0.3026, allocations: 8 kB / 0.4968 GB, free: 2.598 MB / 346.7 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 (pulse.startOutput,$CLKPRE.pulse.startOutput,pulse.counter,$CLKPRE.pulse.counter,pulse.y,assignClock1.y,assignClock1.u) * Number of discrete states: 0 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.279e-05/0.3026, allocations: 112.9 kB / 0.4969 GB, free: 2.48 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.486e-05/0.3027, allocations: 49.69 kB / 0.497 GB, free: 2.426 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.729e-05/0.3027, allocations: 8.406 kB / 0.497 GB, free: 2.418 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.343e-06/0.3027, allocations: 0 / 0.497 GB, free: 2.418 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.13e-06/0.3028, allocations: 8.203 kB / 0.497 GB, free: 2.41 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.504e-06/0.3028, allocations: 0 / 0.497 GB, free: 2.41 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.606e-05/0.3028, allocations: 142.2 kB / 0.4971 GB, free: 2.234 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.72e-07/0.3028, allocations: 0 / 0.4971 GB, free: 2.234 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.111e-06/0.3029, allocations: 0 / 0.4971 GB, free: 2.234 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.773e-06/0.3029, allocations: 0 / 0.4971 GB, free: 2.234 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.035e-06/0.3029, allocations: 4 kB / 0.4971 GB, free: 2.23 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.226e-06/0.3029, allocations: 3.984 kB / 0.4971 GB, free: 2.227 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.532e-06/0.3029, allocations: 96 / 0.4971 GB, free: 2.227 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.764e-05/0.303, allocations: 89 kB / 0.4972 GB, free: 2.121 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.007e-05/0.303, allocations: 85.02 kB / 0.4973 GB, free: 2.02 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.843e-05/0.303, allocations: 4 kB / 0.4973 GB, free: 2.016 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.294e-05/0.3031, allocations: 4 kB / 0.4973 GB, free: 2.012 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.475e-06/0.3031, allocations: 0 / 0.4973 GB, free: 2.012 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.415e-06/0.3031, allocations: 3.984 kB / 0.4973 GB, free: 2.008 MB / 346.7 MB Notification: Performance of sorting global known variables: time 3.38e-05/0.3031, allocations: 83.28 kB / 0.4974 GB, free: 1.926 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3032, allocations: 4 kB / 0.4974 GB, free: 1.922 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0001776/0.3033, allocations: 4 kB / 0.4974 GB, free: 1.918 MB / 346.7 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 8.142e-05/0.3034, allocations: 95.25 kB / 0.4975 GB, free: 1.812 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 7.752e-05/0.3035, allocations: 27.94 kB / 0.4975 GB, free: 1.785 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.3035, allocations: 0 / 0.4975 GB, free: 1.785 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 6.42e-07/0.3035, allocations: 0 / 0.4975 GB, free: 1.785 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005245/0.304, allocations: 0.7068 MB / 0.4982 GB, free: 1.055 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001725/0.3042, allocations: 80.25 kB / 0.4983 GB, free: 0.9531 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001928/0.3044, allocations: 0.6962 MB / 0.4989 GB, free: 236 kB / 346.7 MB Notification: Performance of simCode: alias equations: time 2.031e-05/0.3045, allocations: 192 / 0.4989 GB, free: 232 kB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.904e-05/0.3045, allocations: 11.44 kB / 0.4989 GB, free: 224 kB / 346.7 MB Notification: Performance of SimCode: time 2.31e-07/0.3045, allocations: 0 / 0.4989 GB, free: 224 kB / 346.7 MB Notification: Performance of Templates: time 0.002257/0.3068, allocations: 0.5878 MB / 0.4995 GB, free: 15.63 MB / 362.7 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","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches