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.0009162/0.000916, allocations: 175.6 kB / 16.45 MB, free: 5.551 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.33/1.33, allocations: 205.4 MB / 222.6 MB, free: 9.125 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.0008251/0.0008255, allocations: 99.62 kB / 270.9 MB, free: 8.367 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.0684/0.0684, allocations: 12.59 MB / 331.8 MB, free: 11.39 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003852/0.0003853, allocations: 19.98 kB / 392.7 MB, free: 66.24 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07632/0.07672, allocations: 50.37 MB / 443 MB, free: 15.82 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.001169/0.07793, allocations: 1.152 MB / 444.2 MB, free: 14.66 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0001467/0.07809, allocations: 39.91 kB / 444.2 MB, free: 14.62 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.067e-05/0.07817, allocations: 0 / 444.2 MB, free: 14.62 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.317e-05/0.0782, allocations: 3.938 kB / 444.2 MB, free: 14.61 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 4.455e-05/0.07825, allocations: 4 kB / 444.2 MB, free: 14.61 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001935/0.07845, allocations: 27.97 kB / 444.3 MB, free: 14.58 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 6.585e-05/0.07852, allocations: 35.86 kB / 444.3 MB, free: 14.55 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.443e-05/0.07861, allocations: 15.95 kB / 444.3 MB, free: 14.53 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.126e-05/0.07866, allocations: 15.94 kB / 444.3 MB, free: 14.52 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.541e-05/0.0787, allocations: 7.984 kB / 444.3 MB, free: 14.51 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.756e-05/0.07872, allocations: 11.94 kB / 444.3 MB, free: 14.5 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.679e-06/0.07874, allocations: 0 / 444.3 MB, free: 14.5 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.338e-05/0.07876, allocations: 11.98 kB / 444.3 MB, free: 14.48 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.345e-05/0.07878, allocations: 25.7 kB / 444.4 MB, free: 14.45 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 5.406e-05/0.07884, allocations: 27.94 kB / 444.4 MB, free: 14.43 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.07885, allocations: 0 / 444.4 MB, free: 14.43 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.312e-06/0.07886, allocations: 0 / 444.4 MB, free: 14.43 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.936e-06/0.07887, allocations: 0 / 444.4 MB, free: 14.43 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.0003192/0.07919, allocations: 347.5 kB / 444.7 MB, free: 14.04 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.009e-05/0.07923, allocations: 15.97 kB / 444.8 MB, free: 14.02 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.996e-05/0.07926, allocations: 7.906 kB / 444.8 MB, free: 14.02 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001209/0.07939, allocations: 175 kB / 444.9 MB, free: 13.8 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.0001126/0.07951, allocations: 37.64 kB / 445 MB, free: 13.76 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.457e-05/0.07953, allocations: 4 kB / 445 MB, free: 13.76 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002282/0.07976, allocations: 119.2 kB / 445.1 MB, free: 13.63 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.895e-06/0.07978, allocations: 0 / 445.1 MB, free: 13.63 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.007e-06/0.0798, allocations: 8 kB / 445.1 MB, free: 13.62 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.9e-06/0.07981, allocations: 7.984 kB / 445.1 MB, free: 13.61 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.647e-05/0.07986, allocations: 12 kB / 445.1 MB, free: 13.6 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.144e-05/0.07996, allocations: 157.7 kB / 445.3 MB, free: 13.4 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001471/0.08011, allocations: 143.8 kB / 445.4 MB, free: 13.23 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.278e-05/0.08016, allocations: 20.81 kB / 445.4 MB, free: 13.21 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.936e-06/0.08018, allocations: 11.94 kB / 445.4 MB, free: 13.2 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.078e-05/0.0802, allocations: 30.56 kB / 445.5 MB, free: 13.16 MB / 298.7 MB Notification: Performance of pre-optimization done (n=5): time 1.072e-06/0.0802, allocations: 0 / 445.5 MB, free: 13.16 MB / 298.7 MB Notification: Performance of matching and sorting (n=5): time 0.0001653/0.08037, allocations: 77.58 kB / 445.6 MB, free: 13.07 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.453e-05/0.08042, allocations: 63.39 kB / 445.6 MB, free: 13 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.598e-05/0.08048, allocations: 110 kB / 445.7 MB, free: 12.88 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 7.795e-06/0.08049, allocations: 25.7 kB / 445.7 MB, free: 12.85 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.905e-05/0.08052, allocations: 80.14 kB / 445.8 MB, free: 12.77 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.071e-05/0.08053, allocations: 19.84 kB / 445.8 MB, free: 12.75 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.265e-06/0.08054, allocations: 0 / 445.8 MB, free: 12.75 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.512e-05/0.08059, allocations: 314.8 kB / 446.2 MB, free: 12.43 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.42e-05/0.08061, allocations: 11.92 kB / 446.2 MB, free: 12.42 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.712e-05/0.08064, allocations: 36.3 kB / 446.2 MB, free: 12.37 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.788e-05/0.08068, allocations: 16 kB / 446.2 MB, free: 12.36 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.08068, allocations: 0 / 446.2 MB, free: 12.36 MB / 298.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 7.838e-05/0.08077, allocations: 73.52 kB / 446.3 MB, free: 12.28 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.315e-05/0.08079, allocations: 8 kB / 446.3 MB, free: 12.27 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.632e-06/0.0808, allocations: 3.984 kB / 446.3 MB, free: 12.27 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.142e-05/0.08081, allocations: 0 / 446.3 MB, free: 12.27 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.113e-05/0.08086, allocations: 4.156 kB / 446.3 MB, free: 12.26 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.053e-06/0.08087, allocations: 8 kB / 446.3 MB, free: 12.25 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.565e-05/0.08091, allocations: 4 kB / 446.3 MB, free: 12.25 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.789e-06/0.08092, allocations: 4 kB / 446.3 MB, free: 12.25 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.454e-05/0.08098, allocations: 123.7 kB / 446.4 MB, free: 12.12 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.048e-05/0.08107, allocations: 65.55 kB / 446.5 MB, free: 12.05 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.103e-05/0.0811, allocations: 7.969 kB / 446.5 MB, free: 12.04 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.482e-06/0.08111, allocations: 0 / 446.5 MB, free: 12.04 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.537e-06/0.08111, allocations: 0 / 446.5 MB, free: 12.04 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.897e-06/0.08112, allocations: 8.031 kB / 446.5 MB, free: 12.03 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.543e-05/0.08119, allocations: 169.6 kB / 446.7 MB, free: 11.82 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.0812, allocations: 3.984 kB / 446.7 MB, free: 11.81 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.392e-06/0.08121, allocations: 0 / 446.7 MB, free: 11.81 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.302e-06/0.08122, allocations: 0 / 446.7 MB, free: 11.81 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.177e-06/0.08123, allocations: 7.953 kB / 446.7 MB, free: 11.8 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.092e-06/0.08124, allocations: 160 / 446.7 MB, free: 11.8 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.31e-07/0.08124, allocations: 4 kB / 446.7 MB, free: 11.8 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.674e-05/0.08134, allocations: 85.06 kB / 446.8 MB, free: 11.7 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.414e-05/0.08138, allocations: 85.02 kB / 446.9 MB, free: 11.6 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.843e-05/0.0814, allocations: 11.92 kB / 446.9 MB, free: 11.59 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.326e-05/0.08145, allocations: 7.953 kB / 446.9 MB, free: 11.58 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.276e-06/0.08146, allocations: 4.25 kB / 446.9 MB, free: 11.57 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.112e-06/0.08147, allocations: 0 / 446.9 MB, free: 11.57 MB / 298.7 MB Notification: Performance of sorting global known variables: time 2.875e-05/0.0815, allocations: 87.27 kB / 447 MB, free: 11.49 MB / 298.7 MB Notification: Performance of sort global known variables: time 1e-07/0.08151, allocations: 0 / 447 MB, free: 11.49 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000185/0.0817, allocations: 12 kB / 447 MB, free: 11.48 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.684e-05/0.08178, allocations: 95.25 kB / 447.1 MB, free: 11.38 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 9.46e-05/0.08188, allocations: 35.92 kB / 447.1 MB, free: 11.34 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.08189, allocations: 0 / 447.1 MB, free: 11.34 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 4.81e-07/0.0819, allocations: 0 / 447.1 MB, free: 11.34 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005155/0.08242, allocations: 0.718 MB / 447.8 MB, free: 10.6 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002437/0.08267, allocations: 162.8 kB / 448 MB, free: 10.4 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001153/0.0828, allocations: 0.6848 MB / 448.7 MB, free: 9.691 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.809e-05/0.08282, allocations: 7.438 kB / 448.7 MB, free: 9.684 MB / 298.7 MB Notification: Performance of SimCode: time 2.41e-07/0.08283, allocations: 4 kB / 448.7 MB, free: 9.68 MB / 298.7 MB Notification: Performance of Templates: time 0.001698/0.08453, allocations: 0.7561 MB / 449.4 MB, free: 8.926 MB / 298.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/jenkins1/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