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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001851/0.001852, allocations: 184.2 kB / 7.844 MB, free: 2.512 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.412/1.412, allocations: 205.2 MB / 213.4 MB, free: 13.85 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009998/0.0009999, allocations: 94.27 kB / 261.5 MB, free: 13.6 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.06941/0.06941, allocations: 12.58 MB / 322 MB, free: 0.9609 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 7.334e-06/7.364e-06, allocations: 0 / 378.4 MB, free: 75.61 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07791/0.07793, allocations: 50.37 MB / 428.8 MB, free: 25.27 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.258/0.336, allocations: 76.58 MB / 0.4935 GB, free: 11.69 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002015/0.3363, allocations: 72.86 kB / 0.4936 GB, free: 11.69 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.002044/0.3383, allocations: 0.5585 MB / 0.4941 GB, free: 11.67 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.117e-05/0.3383, allocations: 1.969 kB / 0.4941 GB, free: 11.67 MB / 330.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.0002415/0.3386, allocations: 333.1 kB / 0.4944 GB, free: 11.32 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.509e-05/0.3386, allocations: 7.688 kB / 0.4944 GB, free: 11.32 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.874e-05/0.3387, allocations: 11.77 kB / 0.4944 GB, free: 11.32 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001441/0.3388, allocations: 174.5 kB / 0.4946 GB, free: 11.12 MB / 330.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 9.534e-05/0.3389, allocations: 40.81 kB / 0.4947 GB, free: 11.09 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.283e-05/0.3389, allocations: 7.875 kB / 0.4947 GB, free: 11.08 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 6.895e-05/0.339, allocations: 20.83 kB / 0.4947 GB, free: 11.08 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001769/0.3392, allocations: 110.5 kB / 0.4948 GB, free: 11.02 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.324e-06/0.3392, allocations: 0 / 0.4948 GB, free: 11.02 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.016e-05/0.3392, allocations: 0 / 0.4948 GB, free: 11.02 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.107e-06/0.3392, allocations: 0 / 0.4948 GB, free: 11.02 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.786e-05/0.3393, allocations: 142.6 kB / 0.4949 GB, free: 10.86 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001099/0.3395, allocations: 132.8 kB / 0.495 GB, free: 10.74 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.859e-05/0.3395, allocations: 20.39 kB / 0.4951 GB, free: 10.73 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.888e-06/0.3395, allocations: 0 / 0.4951 GB, free: 10.73 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.439e-05/0.3395, allocations: 36.28 kB / 0.4951 GB, free: 10.69 MB / 330.7 MB Notification: Performance of pre-optimization done (n=5): time 9.32e-07/0.3395, allocations: 0 / 0.4951 GB, free: 10.69 MB / 330.7 MB Notification: Performance of matching and sorting (n=5): time 0.0001209/0.3397, allocations: 59.47 kB / 0.4952 GB, free: 10.65 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.083e-05/0.3397, allocations: 59.31 kB / 0.4952 GB, free: 10.59 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.829e-05/0.3398, allocations: 93.91 kB / 0.4953 GB, free: 10.5 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 8.335e-06/0.3398, allocations: 25.7 kB / 0.4953 GB, free: 10.46 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.337e-05/0.3398, allocations: 85.61 kB / 0.4954 GB, free: 10.38 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.161e-05/0.3398, allocations: 5.453 kB / 0.4954 GB, free: 10.38 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.415e-06/0.3398, allocations: 0 / 0.4954 GB, free: 10.38 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 4.483e-05/0.3399, allocations: 316.5 kB / 0.4957 GB, free: 10.07 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.247e-05/0.3399, allocations: 7.812 kB / 0.4957 GB, free: 10.06 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.374e-05/0.3399, allocations: 39.47 kB / 0.4958 GB, free: 10.02 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.141e-05/0.34, allocations: 13.14 kB / 0.4958 GB, free: 10.02 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.443e-06/0.34, allocations: 0 / 0.4958 GB, free: 10.02 MB / 330.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 7.549e-05/0.34, allocations: 68.75 kB / 0.4958 GB, free: 9.977 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.022e-05/0.3401, allocations: 7.688 kB / 0.4958 GB, free: 9.977 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.709e-06/0.3401, allocations: 0 / 0.4958 GB, free: 9.977 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.446e-05/0.3401, allocations: 3.844 kB / 0.4959 GB, free: 9.977 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.979e-05/0.3401, allocations: 9.031 kB / 0.4959 GB, free: 9.977 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.138e-06/0.3401, allocations: 0 / 0.4959 GB, free: 9.977 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.711e-05/0.3402, allocations: 5.484 kB / 0.4959 GB, free: 9.973 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.138e-06/0.3402, allocations: 3.844 kB / 0.4959 GB, free: 9.973 MB / 330.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 4.625e-05/0.3402, allocations: 117 kB / 0.496 GB, free: 9.855 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.973e-05/0.3403, allocations: 55.62 kB / 0.496 GB, free: 9.82 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.684e-05/0.3403, allocations: 9.594 kB / 0.496 GB, free: 9.816 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.833e-06/0.3403, allocations: 0.5625 kB / 0.496 GB, free: 9.816 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.638e-06/0.3403, allocations: 3.844 kB / 0.496 GB, free: 9.816 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.188e-06/0.3404, allocations: 0 / 0.496 GB, free: 9.816 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.302e-05/0.3404, allocations: 141.9 kB / 0.4962 GB, free: 9.656 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.92e-07/0.3404, allocations: 256 / 0.4962 GB, free: 9.656 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.182e-06/0.3404, allocations: 4 kB / 0.4962 GB, free: 9.652 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.803e-06/0.3404, allocations: 0 / 0.4962 GB, free: 9.652 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.075e-06/0.3405, allocations: 5.875 kB / 0.4962 GB, free: 9.648 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.112e-06/0.3405, allocations: 0 / 0.4962 GB, free: 9.648 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.764e-06/0.3405, allocations: 0 / 0.4962 GB, free: 9.648 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 7.519e-05/0.3405, allocations: 87.47 kB / 0.4963 GB, free: 9.578 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.959e-05/0.3406, allocations: 82.47 kB / 0.4964 GB, free: 9.48 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.901e-05/0.3406, allocations: 3.969 kB / 0.4964 GB, free: 9.48 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.617e-05/0.3406, allocations: 5.141 kB / 0.4964 GB, free: 9.48 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.068e-06/0.3407, allocations: 9.109 kB / 0.4964 GB, free: 9.473 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.551e-06/0.3407, allocations: 0 / 0.4964 GB, free: 9.473 MB / 330.7 MB Notification: Performance of sort global known variables: time 2.039e-05/0.3407, allocations: 84.47 kB / 0.4965 GB, free: 9.398 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002187/0.3409, allocations: 7.688 kB / 0.4965 GB, free: 9.398 MB / 330.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 6.668e-05/0.341, allocations: 96.2 kB / 0.4966 GB, free: 9.309 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 7.858e-05/0.3411, allocations: 31 kB / 0.4966 GB, free: 9.305 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.063e-06/0.3411, allocations: 0 / 0.4966 GB, free: 9.305 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 3.2e-07/0.3411, allocations: 320 / 0.4966 GB, free: 9.305 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004164/0.3415, allocations: 0.7123 MB / 0.4973 GB, free: 8.621 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001658/0.3417, allocations: 70.67 kB / 0.4973 GB, free: 8.555 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001213/0.3418, allocations: 0.702 MB / 0.498 GB, free: 7.844 MB / 330.7 MB Notification: Performance of SimCode: time 2.3e-07/0.3418, allocations: 0 / 0.498 GB, free: 7.844 MB / 330.7 MB Notification: Performance of Templates: time 0.002257/0.3441, allocations: 0.6425 MB / 0.4987 GB, free: 7.773 MB / 330.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