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.0009638/0.0009691, allocations: 95.61 kB / 15.74 MB, free: 420 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001608/0.001608, allocations: 174 kB / 16.62 MB, free: 6.887 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.846/1.846, allocations: 205.4 MB / 222.8 MB, free: 5.637 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.09671/0.09671, allocations: 12.59 MB / 283.7 MB, free: 8.691 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.0008379/0.0008383, allocations: 28 kB / 344.5 MB, free: 21.25 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1151/0.116, allocations: 50.38 MB / 394.9 MB, free: 2.781 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.002104/0.1181, allocations: 1.136 MB / 396.1 MB, free: 1.633 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002933/0.1185, allocations: 52.83 kB / 396.1 MB, free: 1.582 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.739e-05/0.1186, allocations: 4 kB / 396.1 MB, free: 1.578 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 2.145e-05/0.1186, allocations: 3.984 kB / 396.1 MB, free: 1.574 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 8.11e-05/0.1187, allocations: 3.938 kB / 396.1 MB, free: 1.57 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00031/0.119, allocations: 23.97 kB / 396.1 MB, free: 1.547 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001144/0.1191, allocations: 43.86 kB / 396.2 MB, free: 1.504 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001177/0.1193, allocations: 4 kB / 396.2 MB, free: 1.5 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.226e-05/0.1193, allocations: 11.98 kB / 396.2 MB, free: 1.488 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.872e-05/0.1194, allocations: 23.91 kB / 396.2 MB, free: 1.465 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.491e-05/0.1195, allocations: 0 / 396.2 MB, free: 1.465 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.403e-05/0.1195, allocations: 0 / 396.2 MB, free: 1.465 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 2.504e-05/0.1195, allocations: 7.938 kB / 396.2 MB, free: 1.457 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 4.43e-05/0.1196, allocations: 29.7 kB / 396.3 MB, free: 1.422 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 7.632e-05/0.1197, allocations: 23.89 kB / 396.3 MB, free: 1.398 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.529e-06/0.1197, allocations: 0 / 396.3 MB, free: 1.398 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.244e-06/0.1197, allocations: 4 kB / 396.3 MB, free: 1.395 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.114e-06/0.1197, allocations: 0 / 396.3 MB, free: 1.395 MB / 286.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.0005768/0.1203, allocations: 343.5 kB / 396.6 MB, free: 1.012 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.533e-05/0.1203, allocations: 8.031 kB / 396.6 MB, free: 1.004 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.103e-05/0.1204, allocations: 7.906 kB / 396.6 MB, free: 0.9961 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002119/0.1206, allocations: 175 kB / 396.8 MB, free: 0.7852 MB / 286.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.0001914/0.1208, allocations: 45.58 kB / 396.9 MB, free: 0.7344 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.86e-05/0.1208, allocations: 4 kB / 396.9 MB, free: 0.7305 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003377/0.1212, allocations: 123.3 kB / 397 MB, free: 0.5977 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.606e-06/0.1212, allocations: 0 / 397 MB, free: 0.5977 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.379e-05/0.1212, allocations: 4 kB / 397 MB, free: 0.5938 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.51e-06/0.1212, allocations: 0 / 397 MB, free: 0.5938 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.691e-05/0.1213, allocations: 19.92 kB / 397 MB, free: 0.5742 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001786/0.1215, allocations: 161.7 kB / 397.2 MB, free: 376 kB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002182/0.1217, allocations: 139.8 kB / 397.3 MB, free: 208 kB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.019e-05/0.1218, allocations: 36.73 kB / 397.3 MB, free: 168 kB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.192e-05/0.1218, allocations: 0 / 397.3 MB, free: 168 kB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.365e-05/0.1219, allocations: 30.56 kB / 397.4 MB, free: 128 kB / 286.1 MB Notification: Performance of pre-optimization done (n=5): time 8.62e-07/0.1219, allocations: 0 / 397.4 MB, free: 128 kB / 286.1 MB Notification: Performance of matching and sorting (n=5): time 0.000239/0.1221, allocations: 77.72 kB / 397.4 MB, free: 44 kB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.121e-05/0.1222, allocations: 63.41 kB / 397.5 MB, free: 15.97 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.653e-05/0.1223, allocations: 105.8 kB / 397.6 MB, free: 15.86 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.709e-05/0.1223, allocations: 25.7 kB / 397.6 MB, free: 15.82 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.537e-05/0.1224, allocations: 88.14 kB / 397.7 MB, free: 15.73 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.752e-05/0.1224, allocations: 3.906 kB / 397.7 MB, free: 15.73 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.297e-06/0.1224, allocations: 0 / 397.7 MB, free: 15.73 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002359/0.1227, allocations: 322.8 kB / 398 MB, free: 15.41 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.938e-05/0.1227, allocations: 8 kB / 398 MB, free: 15.4 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.964e-05/0.1228, allocations: 44.22 kB / 398.1 MB, free: 15.34 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.673e-05/0.1228, allocations: 16 kB / 398.1 MB, free: 15.32 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.1228, allocations: 0 / 398.1 MB, free: 15.32 MB / 302.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001311/0.1229, allocations: 77.61 kB / 398.2 MB, free: 15.24 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.055e-05/0.123, allocations: 8 kB / 398.2 MB, free: 15.23 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.604e-06/0.123, allocations: 0 / 398.2 MB, free: 15.23 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.703e-05/0.123, allocations: 4 kB / 398.2 MB, free: 15.23 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.859e-05/0.1231, allocations: 4 kB / 398.2 MB, free: 15.23 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.061e-06/0.1231, allocations: 0 / 398.2 MB, free: 15.23 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.209e-05/0.1231, allocations: 4 kB / 398.2 MB, free: 15.22 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.661e-06/0.1231, allocations: 0 / 398.2 MB, free: 15.22 MB / 302.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 (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 0.0001109/0.1233, allocations: 121.6 kB / 398.3 MB, free: 15.09 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002197/0.1235, allocations: 81.58 kB / 398.4 MB, free: 15.01 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.24e-05/0.1235, allocations: 3.969 kB / 398.4 MB, free: 15 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.448e-06/0.1235, allocations: 4 kB / 398.4 MB, free: 15 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.51e-06/0.1235, allocations: 0 / 398.4 MB, free: 15 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.356e-06/0.1236, allocations: 0 / 398.4 MB, free: 15 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001189/0.1237, allocations: 169.5 kB / 398.6 MB, free: 14.79 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.973e-06/0.1237, allocations: 0 / 398.6 MB, free: 14.79 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.965e-06/0.1237, allocations: 0 / 398.6 MB, free: 14.79 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.705e-06/0.1237, allocations: 0 / 398.6 MB, free: 14.79 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.596e-05/0.1237, allocations: 7.953 kB / 398.6 MB, free: 14.78 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.894e-06/0.1237, allocations: 0 / 398.6 MB, free: 14.78 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.1238, allocations: 4 kB / 398.6 MB, free: 14.77 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001625/0.1239, allocations: 89.3 kB / 398.7 MB, free: 14.67 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.326e-05/0.124, allocations: 81.02 kB / 398.7 MB, free: 14.57 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.809e-05/0.124, allocations: 12 kB / 398.8 MB, free: 14.56 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.234e-05/0.1241, allocations: 7.953 kB / 398.8 MB, free: 14.55 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.44e-06/0.1241, allocations: 0 / 398.8 MB, free: 14.55 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.249e-05/0.1241, allocations: 3.984 kB / 398.8 MB, free: 14.55 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.934e-05/0.1242, allocations: 87.28 kB / 398.9 MB, free: 14.46 MB / 302.1 MB Notification: Performance of sort global known variables: time 7.92e-07/0.1242, allocations: 0 / 398.9 MB, free: 14.46 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002262/0.1244, allocations: 8 kB / 398.9 MB, free: 14.45 MB / 302.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 (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 0.0001619/0.1246, allocations: 95.25 kB / 399 MB, free: 14.35 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000152/0.1248, allocations: 31.92 kB / 399 MB, free: 14.32 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.514e-06/0.1248, allocations: 0 / 399 MB, free: 14.32 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 1.162e-06/0.1248, allocations: 3.938 kB / 399 MB, free: 14.32 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009319/0.1257, allocations: 0.73 MB / 399.7 MB, free: 13.56 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004357/0.1262, allocations: 132.7 kB / 399.9 MB, free: 13.4 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000428/0.1266, allocations: 0.6809 MB / 400.5 MB, free: 12.7 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.038e-05/0.1267, allocations: 192 / 400.5 MB, free: 12.69 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.332e-05/0.1267, allocations: 15.5 kB / 400.5 MB, free: 12.68 MB / 302.1 MB Notification: Performance of SimCode: time 6.41e-07/0.1267, allocations: 3.938 kB / 400.6 MB, free: 12.67 MB / 302.1 MB Notification: Performance of Templates: time 0.003475/0.1302, allocations: 0.616 MB / 401.2 MB, free: 12.06 MB / 302.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: 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