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.00128/0.001285, allocations: 101.8 kB / 16.45 MB, free: 6.438 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001595/0.001595, allocations: 190 kB / 17.38 MB, free: 5.668 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.688/1.688, allocations: 205.1 MB / 223.3 MB, free: 12.22 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.07699/0.07699, allocations: 12.58 MB / 283.2 MB, free: 15.39 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.002094/0.002094, allocations: 88.58 kB / 394.2 MB, free: 45.38 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1191/0.1212, allocations: 49.41 MB / 443.6 MB, free: 0.4961 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.003423/0.1247, allocations: 1.432 MB / 445 MB, free: 15.05 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.000225/0.125, allocations: 43.84 kB / 445 MB, free: 15.01 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.4e-05/0.1251, allocations: 0 / 445 MB, free: 15.01 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.518e-05/0.1251, allocations: 3.938 kB / 445 MB, free: 15.01 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 6.834e-05/0.1252, allocations: 0 / 445 MB, free: 15.01 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003017/0.1255, allocations: 35.89 kB / 445.1 MB, free: 14.97 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001252/0.1256, allocations: 39.86 kB / 445.1 MB, free: 14.93 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001241/0.1258, allocations: 19.97 kB / 445.1 MB, free: 14.91 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.93e-05/0.1258, allocations: 8 kB / 445.1 MB, free: 14.91 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.745e-05/0.1259, allocations: 19.92 kB / 445.2 MB, free: 14.89 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.173e-05/0.1259, allocations: 0 / 445.2 MB, free: 14.89 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.056e-05/0.1259, allocations: 8 kB / 445.2 MB, free: 14.88 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.284e-05/0.126, allocations: 15.92 kB / 445.2 MB, free: 14.86 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.275e-05/0.126, allocations: 19.92 kB / 445.2 MB, free: 14.84 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000115/0.1261, allocations: 35.83 kB / 445.2 MB, free: 14.81 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.1261, allocations: 0 / 445.2 MB, free: 14.81 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.1262, allocations: 4 kB / 445.2 MB, free: 14.8 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.123e-06/0.1262, allocations: 0 / 445.2 MB, free: 14.8 MB / 334.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.0005344/0.1267, allocations: 343.5 kB / 445.6 MB, free: 14.42 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.493e-05/0.1268, allocations: 8.031 kB / 445.6 MB, free: 14.41 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.074e-05/0.1268, allocations: 12.84 kB / 445.6 MB, free: 14.4 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000268/0.1271, allocations: 188.3 kB / 445.8 MB, free: 14.18 MB / 334.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.000111/0.1272, allocations: 34.27 kB / 445.8 MB, free: 14.14 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.251e-05/0.1272, allocations: 384 / 445.8 MB, free: 14.14 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003359/0.1276, allocations: 123.9 kB / 445.9 MB, free: 14 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.31e-05/0.1276, allocations: 7.875 kB / 445.9 MB, free: 14 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.264e-05/0.1276, allocations: 8 kB / 446 MB, free: 13.99 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.221e-06/0.1276, allocations: 0 / 446 MB, free: 13.99 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.917e-05/0.1277, allocations: 19.92 kB / 446 MB, free: 13.97 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002021/0.1279, allocations: 161.6 kB / 446.1 MB, free: 13.76 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000228/0.1281, allocations: 139.8 kB / 446.3 MB, free: 13.6 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.889e-05/0.1282, allocations: 28.78 kB / 446.3 MB, free: 13.57 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.784e-05/0.1282, allocations: 4 kB / 446.3 MB, free: 13.56 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.163e-05/0.1283, allocations: 34.5 kB / 446.3 MB, free: 13.52 MB / 334.1 MB Notification: Performance of pre-optimization done (n=5): time 1.472e-06/0.1283, allocations: 4 kB / 446.3 MB, free: 13.52 MB / 334.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002311/0.1285, allocations: 73.62 kB / 446.4 MB, free: 13.44 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.145e-05/0.1286, allocations: 59.41 kB / 446.5 MB, free: 13.37 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001034/0.1287, allocations: 109.8 kB / 446.6 MB, free: 13.25 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.431e-05/0.1287, allocations: 25.7 kB / 446.6 MB, free: 13.22 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.843e-05/0.1288, allocations: 84.14 kB / 446.7 MB, free: 13.13 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.879e-05/0.1288, allocations: 15.89 kB / 446.7 MB, free: 13.12 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.373e-05/0.1288, allocations: 17.72 kB / 446.7 MB, free: 13.09 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001359/0.129, allocations: 310.8 kB / 447 MB, free: 12.78 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.419e-05/0.129, allocations: 11.98 kB / 447 MB, free: 12.77 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.137e-05/0.1291, allocations: 40.23 kB / 447.1 MB, free: 12.71 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.933e-05/0.1291, allocations: 56.22 kB / 447.1 MB, free: 12.64 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.814e-06/0.1291, allocations: 0 / 447.1 MB, free: 12.64 MB / 334.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001085/0.1293, allocations: 69.56 kB / 447.2 MB, free: 12.57 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.752e-05/0.1293, allocations: 12.09 kB / 447.2 MB, free: 12.56 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.168e-06/0.1293, allocations: 4 kB / 447.2 MB, free: 12.55 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.54e-05/0.1293, allocations: 4.031 kB / 447.2 MB, free: 12.55 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.746e-05/0.1294, allocations: 4 kB / 447.2 MB, free: 12.55 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.2e-06/0.1294, allocations: 4 kB / 447.2 MB, free: 12.54 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.697e-05/0.1294, allocations: 7.844 kB / 447.2 MB, free: 12.54 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.003e-06/0.1294, allocations: 4.438 kB / 447.2 MB, free: 12.53 MB / 334.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 ($CLKPRE.pulse.startOutput,pulse.startOutput,$CLKPRE.pulse.counter,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9e-05/0.1295, allocations: 113.8 kB / 447.3 MB, free: 12.41 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001234/0.1297, allocations: 73.56 kB / 447.4 MB, free: 12.33 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.883e-05/0.1297, allocations: 7.969 kB / 447.4 MB, free: 12.32 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.256e-06/0.1297, allocations: 7.922 kB / 447.4 MB, free: 12.32 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.923e-06/0.1297, allocations: 4 kB / 447.4 MB, free: 12.31 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.298e-06/0.1297, allocations: 0 / 447.4 MB, free: 12.31 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001305/0.1299, allocations: 161.7 kB / 447.6 MB, free: 12.11 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.333e-06/0.1299, allocations: 0 / 447.6 MB, free: 12.11 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.751e-06/0.1299, allocations: 0 / 447.6 MB, free: 12.11 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.657e-06/0.1299, allocations: 3.938 kB / 447.6 MB, free: 12.1 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.997e-06/0.1299, allocations: 0 / 447.6 MB, free: 12.1 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.263e-06/0.1299, allocations: 4 kB / 447.6 MB, free: 12.1 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.1299, allocations: 0 / 447.6 MB, free: 12.1 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001388/0.1301, allocations: 92.97 kB / 447.7 MB, free: 11.99 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.72e-05/0.1301, allocations: 81.09 kB / 447.8 MB, free: 11.89 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.415e-05/0.1302, allocations: 11.94 kB / 447.8 MB, free: 11.88 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.464e-05/0.1302, allocations: 4 kB / 447.8 MB, free: 11.88 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.286e-06/0.1302, allocations: 0 / 447.8 MB, free: 11.88 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.671e-06/0.1302, allocations: 3.938 kB / 447.8 MB, free: 11.87 MB / 334.1 MB Notification: Performance of sorting global known variables: time 4.848e-05/0.1303, allocations: 87.27 kB / 447.9 MB, free: 11.79 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1303, allocations: 0 / 447.9 MB, free: 11.79 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002016/0.1305, allocations: 12 kB / 447.9 MB, free: 11.77 MB / 334.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001208/0.1306, allocations: 95.25 kB / 448 MB, free: 11.67 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001251/0.1308, allocations: 31.92 kB / 448 MB, free: 11.64 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.1308, allocations: 4 kB / 448 MB, free: 11.64 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.61e-07/0.1308, allocations: 0 / 448 MB, free: 11.64 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007135/0.1315, allocations: 0.7186 MB / 448.7 MB, free: 10.89 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003126/0.1318, allocations: 135.1 kB / 448.9 MB, free: 10.74 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002725/0.1321, allocations: 0.6846 MB / 449.5 MB, free: 10.03 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 2.352e-05/0.1321, allocations: 0 / 449.5 MB, free: 10.03 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.46e-05/0.1322, allocations: 11.44 kB / 449.6 MB, free: 10.02 MB / 334.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1322, allocations: 0 / 449.6 MB, free: 10.02 MB / 334.1 MB Notification: Performance of Templates: time 0.002904/0.1351, allocations: 0.7131 MB / 450.3 MB, free: 9.305 MB / 334.1 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches