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.001165/0.001165, allocations: 100.5 kB / 16.02 MB, free: 6.344 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.001454/0.001455, allocations: 196.8 kB / 16.95 MB, free: 6.172 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.734/1.734, allocations: 205.1 MB / 222.8 MB, free: 4.684 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.08492/0.08493, allocations: 12.58 MB / 282.7 MB, free: 8.824 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.001626/0.001626, allocations: 87.88 kB / 343 MB, free: 21.09 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09807/0.09971, allocations: 49.4 MB / 392.4 MB, free: 3.609 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.002969/0.1027, allocations: 1.499 MB / 393.9 MB, free: 2.094 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001969/0.103, allocations: 35.91 kB / 393.9 MB, free: 2.059 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.558e-05/0.1031, allocations: 0 / 393.9 MB, free: 2.059 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 4.049e-05/0.1031, allocations: 3.938 kB / 393.9 MB, free: 2.055 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 7.406e-05/0.1032, allocations: 11.98 kB / 393.9 MB, free: 2.043 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003242/0.1035, allocations: 23.98 kB / 393.9 MB, free: 2.02 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001189/0.1036, allocations: 39.91 kB / 394 MB, free: 1.98 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001774/0.1038, allocations: 8 kB / 394 MB, free: 1.973 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.23e-05/0.1039, allocations: 23.86 kB / 394 MB, free: 1.949 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.189e-05/0.104, allocations: 19.91 kB / 394 MB, free: 1.93 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.102e-05/0.104, allocations: 4 kB / 394 MB, free: 1.926 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.632e-05/0.104, allocations: 4 kB / 394 MB, free: 1.922 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.406e-05/0.1041, allocations: 7.938 kB / 394.1 MB, free: 1.914 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.476e-05/0.1041, allocations: 23.92 kB / 394.1 MB, free: 1.891 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00016/0.1043, allocations: 39.88 kB / 394.1 MB, free: 1.852 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.637e-06/0.1043, allocations: 0 / 394.1 MB, free: 1.852 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.524e-06/0.1043, allocations: 0 / 394.1 MB, free: 1.852 MB / 286.1 MB Notification: Performance of Transformations before backend: time 9.659e-06/0.1043, allocations: 0 / 394.1 MB, free: 1.852 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.0007389/0.1051, allocations: 359.5 kB / 394.5 MB, free: 1.449 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.026e-05/0.1052, allocations: 8.031 kB / 394.5 MB, free: 1.441 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.272e-05/0.1052, allocations: 4.938 kB / 394.5 MB, free: 1.438 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000257/0.1055, allocations: 176.3 kB / 394.6 MB, free: 1.227 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.0002854/0.1058, allocations: 42.25 kB / 394.7 MB, free: 1.18 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.006e-05/0.1058, allocations: 4.375 kB / 394.7 MB, free: 1.176 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004065/0.1062, allocations: 127.8 kB / 394.8 MB, free: 1.039 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.592e-05/0.1062, allocations: 3.938 kB / 394.8 MB, free: 1.035 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.163e-05/0.1063, allocations: 3.984 kB / 394.8 MB, free: 1.031 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.856e-06/0.1063, allocations: 0 / 394.8 MB, free: 1.031 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.515e-05/0.1064, allocations: 16 kB / 394.8 MB, free: 1.016 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000245/0.1066, allocations: 165.7 kB / 395 MB, free: 0.8047 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002983/0.1069, allocations: 139.7 kB / 395.1 MB, free: 0.6406 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.306e-05/0.107, allocations: 24.86 kB / 395.2 MB, free: 0.6133 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.352e-05/0.1071, allocations: 0 / 395.2 MB, free: 0.6133 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.363e-05/0.1071, allocations: 38.56 kB / 395.2 MB, free: 0.5664 MB / 286.1 MB Notification: Performance of pre-optimization done (n=5): time 8.52e-07/0.1071, allocations: 0 / 395.2 MB, free: 0.5664 MB / 286.1 MB Notification: Performance of matching and sorting (n=5): time 0.0003287/0.1075, allocations: 85.55 kB / 395.3 MB, free: 488 kB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001001/0.1076, allocations: 59.31 kB / 395.3 MB, free: 416 kB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000147/0.1077, allocations: 109.8 kB / 395.5 MB, free: 296 kB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.379e-05/0.1078, allocations: 33.64 kB / 395.5 MB, free: 256 kB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.842e-05/0.1078, allocations: 80.14 kB / 395.6 MB, free: 172 kB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.409e-05/0.1079, allocations: 4 kB / 395.6 MB, free: 168 kB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.85e-05/0.1079, allocations: 21.72 kB / 395.6 MB, free: 140 kB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.00026/0.1082, allocations: 318.8 kB / 395.9 MB, free: 15.82 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.555e-05/0.1082, allocations: 12 kB / 395.9 MB, free: 15.8 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.91e-05/0.1083, allocations: 36.28 kB / 395.9 MB, free: 15.75 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.15e-05/0.1084, allocations: 48.23 kB / 396 MB, free: 15.69 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.115e-06/0.1084, allocations: 0 / 396 MB, free: 15.69 MB / 302.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001299/0.1085, allocations: 73.47 kB / 396.1 MB, free: 15.61 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.11e-05/0.1086, allocations: 11.94 kB / 396.1 MB, free: 15.6 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.466e-06/0.1086, allocations: 0 / 396.1 MB, free: 15.6 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.663e-05/0.1086, allocations: 4 kB / 396.1 MB, free: 15.6 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.587e-05/0.1087, allocations: 8 kB / 396.1 MB, free: 15.59 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.448e-06/0.1087, allocations: 8.25 kB / 396.1 MB, free: 15.58 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.808e-05/0.1087, allocations: 4 kB / 396.1 MB, free: 15.58 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.097e-06/0.1087, allocations: 3.984 kB / 396.1 MB, free: 15.57 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 ($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 0.0001396/0.1089, allocations: 113.8 kB / 396.2 MB, free: 15.45 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001098/0.109, allocations: 61.62 kB / 396.3 MB, free: 15.39 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.731e-05/0.1091, allocations: 7.969 kB / 396.3 MB, free: 15.38 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.244e-06/0.1091, allocations: 4 kB / 396.3 MB, free: 15.38 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.093e-06/0.1091, allocations: 0 / 396.3 MB, free: 15.38 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.479e-06/0.1091, allocations: 0 / 396.3 MB, free: 15.38 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001578/0.1093, allocations: 169.5 kB / 396.5 MB, free: 15.16 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.1093, allocations: 448 / 396.5 MB, free: 15.16 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.795e-06/0.1093, allocations: 3.938 kB / 396.5 MB, free: 15.16 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.118e-06/0.1093, allocations: 3.938 kB / 396.5 MB, free: 15.15 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.914e-05/0.1094, allocations: 12 kB / 396.5 MB, free: 15.14 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.767e-06/0.1094, allocations: 3.984 kB / 396.5 MB, free: 15.14 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.44e-06/0.1094, allocations: 3.984 kB / 396.5 MB, free: 15.13 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001457/0.1095, allocations: 85.06 kB / 396.6 MB, free: 15.03 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.004e-05/0.1096, allocations: 85.11 kB / 396.6 MB, free: 14.93 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.771e-05/0.1096, allocations: 3.938 kB / 396.7 MB, free: 14.93 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.582e-05/0.1097, allocations: 8 kB / 396.7 MB, free: 14.92 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.581e-06/0.1097, allocations: 144 / 396.7 MB, free: 14.92 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.572e-05/0.1097, allocations: 7.969 kB / 396.7 MB, free: 14.91 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.029e-05/0.1098, allocations: 83.28 kB / 396.7 MB, free: 14.83 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1098, allocations: 0 / 396.7 MB, free: 14.83 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002002/0.11, allocations: 8 kB / 396.8 MB, free: 14.82 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 (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.0001788/0.1102, allocations: 103.1 kB / 396.9 MB, free: 14.71 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001547/0.1103, allocations: 39.92 kB / 396.9 MB, free: 14.67 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.1104, allocations: 0 / 396.9 MB, free: 14.67 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 5.31e-07/0.1104, allocations: 0 / 396.9 MB, free: 14.67 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007971/0.1112, allocations: 0.7257 MB / 397.6 MB, free: 13.92 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003444/0.1115, allocations: 126 kB / 397.7 MB, free: 13.77 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000467/0.112, allocations: 0.6883 MB / 398.4 MB, free: 13.06 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 2.318e-05/0.112, allocations: 3.984 kB / 398.4 MB, free: 13.05 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.684e-05/0.1121, allocations: 11.44 kB / 398.4 MB, free: 13.04 MB / 302.1 MB Notification: Performance of SimCode: time 4.91e-07/0.1121, allocations: 0 / 398.4 MB, free: 13.04 MB / 302.1 MB Notification: Performance of Templates: time 0.003246/0.1153, allocations: 0.677 MB / 399.1 MB, free: 12.37 MB / 302.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","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches