Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_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_cpp_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_cpp_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.001409/0.001409, allocations: 185.1 kB / 16.45 MB, free: 5.656 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.466/1.466, allocations: 205.4 MB / 222.6 MB, free: 9.109 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.0007806/0.0007806, allocations: 95.78 kB / 270.9 MB, free: 8.344 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.08416/0.08416, allocations: 12.59 MB / 331.8 MB, free: 11.36 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003866/0.0003866, allocations: 16 kB / 392 MB, free: 66.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08805/0.08845, allocations: 50.37 MB / 442.4 MB, free: 16.46 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.001281/0.08978, allocations: 1.144 MB / 443.5 MB, free: 15.3 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0001881/0.08998, allocations: 47.89 kB / 443.6 MB, free: 15.25 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.192e-05/0.09004, allocations: 0 / 443.6 MB, free: 15.25 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.563e-05/0.09007, allocations: 3.938 kB / 443.6 MB, free: 15.25 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 5.481e-05/0.09013, allocations: 0 / 443.6 MB, free: 15.25 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002361/0.09037, allocations: 27.91 kB / 443.6 MB, free: 15.22 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 7.475e-05/0.09046, allocations: 43.84 kB / 443.6 MB, free: 15.18 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.319e-05/0.09055, allocations: 4 kB / 443.6 MB, free: 15.18 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.107e-05/0.0906, allocations: 15.98 kB / 443.7 MB, free: 15.16 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.015e-05/0.09065, allocations: 15.92 kB / 443.7 MB, free: 15.14 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.627e-05/0.09067, allocations: 4 kB / 443.7 MB, free: 15.14 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.103e-05/0.09069, allocations: 4 kB / 443.7 MB, free: 15.14 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.398e-05/0.09071, allocations: 7.922 kB / 443.7 MB, free: 15.13 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.731e-05/0.09074, allocations: 33.7 kB / 443.7 MB, free: 15.09 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 6.365e-05/0.09081, allocations: 19.95 kB / 443.7 MB, free: 15.07 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.18e-06/0.09082, allocations: 0 / 443.7 MB, free: 15.07 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.783e-06/0.09083, allocations: 0 / 443.7 MB, free: 15.07 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.168e-06/0.09084, allocations: 0 / 443.7 MB, free: 15.07 MB / 298.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.0003669/0.09121, allocations: 343.5 kB / 444.1 MB, free: 14.69 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.014e-05/0.09126, allocations: 16.03 kB / 444.1 MB, free: 14.67 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.87e-05/0.0913, allocations: 7.844 kB / 444.1 MB, free: 14.66 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001407/0.09145, allocations: 183 kB / 444.3 MB, free: 14.45 MB / 298.7 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.0001426/0.0916, allocations: 37.64 kB / 444.3 MB, free: 14.4 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.634e-05/0.09162, allocations: 8 kB / 444.3 MB, free: 14.39 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002479/0.09188, allocations: 119.3 kB / 444.4 MB, free: 14.27 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.825e-06/0.0919, allocations: 0 / 444.4 MB, free: 14.27 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.004e-05/0.09191, allocations: 4 kB / 444.4 MB, free: 14.26 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.779e-06/0.09192, allocations: 3.938 kB / 444.4 MB, free: 14.26 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.358e-05/0.09198, allocations: 12 kB / 444.5 MB, free: 14.25 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001046/0.0921, allocations: 165.7 kB / 444.6 MB, free: 14.04 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001629/0.09227, allocations: 135.8 kB / 444.8 MB, free: 13.88 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.713e-05/0.09232, allocations: 28.81 kB / 444.8 MB, free: 13.84 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.214e-05/0.09234, allocations: 4 kB / 444.8 MB, free: 13.84 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.416e-05/0.09236, allocations: 42.48 kB / 444.8 MB, free: 13.79 MB / 298.7 MB Notification: Performance of pre-optimization done (n=5): time 1.192e-06/0.09237, allocations: 4 kB / 444.8 MB, free: 13.79 MB / 298.7 MB Notification: Performance of matching and sorting (n=5): time 0.0001765/0.09255, allocations: 73.58 kB / 444.9 MB, free: 13.71 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.069e-05/0.0926, allocations: 59.41 kB / 445 MB, free: 13.64 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.449e-05/0.09266, allocations: 105.8 kB / 445.1 MB, free: 13.52 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.627e-06/0.09268, allocations: 25.7 kB / 445.1 MB, free: 13.49 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.024e-05/0.0927, allocations: 84.14 kB / 445.2 MB, free: 13.41 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.078e-05/0.09272, allocations: 11.84 kB / 445.2 MB, free: 13.39 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.707e-06/0.09273, allocations: 4 kB / 445.2 MB, free: 13.39 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.669e-05/0.09278, allocations: 318.8 kB / 445.5 MB, free: 13.07 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.629e-05/0.09282, allocations: 4 kB / 445.5 MB, free: 13.07 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.687e-05/0.09285, allocations: 40.23 kB / 445.5 MB, free: 13.01 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.514e-05/0.09288, allocations: 20 kB / 445.6 MB, free: 12.99 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.774e-06/0.09289, allocations: 0 / 445.6 MB, free: 12.99 MB / 298.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 7.764e-05/0.09297, allocations: 73.52 kB / 445.6 MB, free: 12.91 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.323e-05/0.09299, allocations: 7.984 kB / 445.6 MB, free: 12.91 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.239e-06/0.093, allocations: 4 kB / 445.6 MB, free: 12.9 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.149e-05/0.09302, allocations: 0 / 445.6 MB, free: 12.9 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.097e-05/0.09307, allocations: 4.156 kB / 445.6 MB, free: 12.9 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.352e-06/0.09308, allocations: 8 kB / 445.7 MB, free: 12.89 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.298e-05/0.09311, allocations: 0 / 445.7 MB, free: 12.89 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.099e-06/0.09312, allocations: 4 kB / 445.7 MB, free: 12.89 MB / 298.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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.071e-05/0.09318, allocations: 117.6 kB / 445.8 MB, free: 12.76 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.915e-05/0.09327, allocations: 73.48 kB / 445.8 MB, free: 12.68 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.847e-05/0.09329, allocations: 3.969 kB / 445.8 MB, free: 12.68 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.233e-06/0.0933, allocations: 0 / 445.8 MB, free: 12.68 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.569e-06/0.09331, allocations: 0 / 445.8 MB, free: 12.68 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.376e-06/0.09332, allocations: 3.984 kB / 445.9 MB, free: 12.68 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.665e-05/0.09338, allocations: 169.6 kB / 446 MB, free: 12.46 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.11e-07/0.09339, allocations: 0 / 446 MB, free: 12.46 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.703e-06/0.0934, allocations: 4 kB / 446 MB, free: 12.46 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.654e-06/0.0934, allocations: 0 / 446 MB, free: 12.46 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.065e-06/0.09342, allocations: 3.953 kB / 446 MB, free: 12.45 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.313e-06/0.09342, allocations: 448 / 446 MB, free: 12.45 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.09343, allocations: 0 / 446 MB, free: 12.45 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.756e-05/0.09353, allocations: 93.06 kB / 446.1 MB, free: 12.34 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.991e-05/0.09356, allocations: 89 kB / 446.2 MB, free: 12.24 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.902e-05/0.09358, allocations: 4 kB / 446.2 MB, free: 12.23 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.455e-05/0.09363, allocations: 11.89 kB / 446.2 MB, free: 12.22 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.986e-06/0.09364, allocations: 0 / 446.2 MB, free: 12.22 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.732e-06/0.09365, allocations: 4 kB / 446.2 MB, free: 12.22 MB / 298.7 MB Notification: Performance of sorting global known variables: time 2.241e-05/0.09368, allocations: 87.27 kB / 446.3 MB, free: 12.13 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.09369, allocations: 0 / 446.3 MB, free: 12.13 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001716/0.09386, allocations: 4 kB / 446.3 MB, free: 12.13 MB / 298.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 () * 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 (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 7.177e-05/0.09394, allocations: 103.2 kB / 446.4 MB, free: 12.02 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 9.796e-05/0.09405, allocations: 35.92 kB / 446.4 MB, free: 11.98 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.09406, allocations: 0 / 446.4 MB, free: 11.98 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 4.71e-07/0.09406, allocations: 0 / 446.4 MB, free: 11.98 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004714/0.09454, allocations: 0.7194 MB / 447.2 MB, free: 11.24 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002456/0.09479, allocations: 158.8 kB / 447.3 MB, free: 11.05 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.73e-05/0.0949, allocations: 0.6887 MB / 448 MB, free: 10.34 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.813e-05/0.09493, allocations: 7.438 kB / 448 MB, free: 10.33 MB / 298.7 MB Notification: Performance of SimCode: time 3.1e-07/0.09493, allocations: 0 / 448 MB, free: 10.33 MB / 298.7 MB Notification: Performance of Templates: time 0.001704/0.09664, allocations: 0.7684 MB / 448.8 MB, free: 9.562 MB / 298.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_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_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches