Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse") translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001266/0.001266, allocations: 107.4 kB / 17.98 MB, free: 5.355 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001411/0.001411, allocations: 213.8 kB / 18.92 MB, free: 4.422 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.427/1.427, allocations: 227.4 MB / 247.1 MB, free: 10.75 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001788/0.001788, allocations: 68.28 kB / 307.1 MB, free: 0.9141 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09816/0.09997, allocations: 50.54 MB / 357.7 MB, free: 14.38 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.002851/0.1029, allocations: 1.5 MB / 359.2 MB, free: 12.86 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001831/0.1031, allocations: 35.84 kB / 359.2 MB, free: 12.83 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.206e-05/0.1031, allocations: 4 kB / 359.2 MB, free: 12.82 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 3.223e-05/0.1032, allocations: 0 / 359.2 MB, free: 12.82 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 5.592e-05/0.1033, allocations: 3.938 kB / 359.2 MB, free: 12.82 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002357/0.1035, allocations: 31.97 kB / 359.2 MB, free: 12.79 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 9.876e-05/0.1036, allocations: 43.91 kB / 359.3 MB, free: 12.75 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.65e-05/0.1037, allocations: 4 kB / 359.3 MB, free: 12.74 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.004e-05/0.1038, allocations: 23.91 kB / 359.3 MB, free: 12.72 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.062e-05/0.1038, allocations: 19.92 kB / 359.3 MB, free: 12.7 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.153e-05/0.1039, allocations: 4 kB / 359.3 MB, free: 12.7 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.197e-05/0.1039, allocations: 4 kB / 359.3 MB, free: 12.69 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 2.416e-05/0.1039, allocations: 11.94 kB / 359.4 MB, free: 12.68 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 3.682e-05/0.104, allocations: 15.92 kB / 359.4 MB, free: 12.66 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 7.64e-05/0.104, allocations: 23.95 kB / 359.4 MB, free: 12.64 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.36e-06/0.104, allocations: 0 / 359.4 MB, free: 12.64 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.487e-06/0.1041, allocations: 7.984 kB / 359.4 MB, free: 12.63 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.458e-06/0.1041, allocations: 0 / 359.4 MB, free: 12.63 MB / 302.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.0005281/0.1046, allocations: 347.7 kB / 359.7 MB, free: 12.24 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.82e-05/0.1046, allocations: 8.031 kB / 359.8 MB, free: 12.23 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.913e-05/0.1047, allocations: 8.844 kB / 359.8 MB, free: 12.23 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001941/0.1049, allocations: 184.2 kB / 359.9 MB, free: 12.01 MB / 302.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.0001555/0.1051, allocations: 43 kB / 360 MB, free: 11.96 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.506e-05/0.1051, allocations: 384 / 360 MB, free: 11.96 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003007/0.1054, allocations: 131.8 kB / 360.1 MB, free: 11.82 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.088e-05/0.1054, allocations: 3.938 kB / 360.1 MB, free: 11.82 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.03e-05/0.1054, allocations: 0 / 360.1 MB, free: 11.82 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.208e-06/0.1054, allocations: 0 / 360.1 MB, free: 11.82 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.957e-05/0.1055, allocations: 15.98 kB / 360.1 MB, free: 11.8 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001689/0.1057, allocations: 161.7 kB / 360.3 MB, free: 11.59 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002328/0.1059, allocations: 147.7 kB / 360.4 MB, free: 11.42 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.25e-05/0.106, allocations: 28.8 kB / 360.5 MB, free: 11.39 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.131e-05/0.106, allocations: 0 / 360.5 MB, free: 11.39 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.479e-05/0.106, allocations: 30.56 kB / 360.5 MB, free: 11.35 MB / 302.1 MB Notification: Performance of pre-optimization done (n=5): time 9.82e-07/0.106, allocations: 4 kB / 360.5 MB, free: 11.35 MB / 302.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002537/0.1063, allocations: 73.61 kB / 360.6 MB, free: 11.27 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.594e-05/0.1064, allocations: 63.41 kB / 360.6 MB, free: 11.2 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.688e-05/0.1065, allocations: 105.8 kB / 360.7 MB, free: 11.08 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.457e-05/0.1065, allocations: 25.7 kB / 360.8 MB, free: 11.05 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.897e-05/0.1066, allocations: 88.12 kB / 360.8 MB, free: 10.96 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.029e-05/0.1066, allocations: 11.84 kB / 360.9 MB, free: 10.95 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.585e-05/0.1066, allocations: 21.66 kB / 360.9 MB, free: 10.92 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001533/0.1068, allocations: 318.8 kB / 361.2 MB, free: 10.6 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.089e-05/0.1068, allocations: 4 kB / 361.2 MB, free: 10.6 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.853e-05/0.1069, allocations: 44.72 kB / 361.2 MB, free: 10.54 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.413e-05/0.1069, allocations: 48.23 kB / 361.3 MB, free: 10.48 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.734e-06/0.107, allocations: 4 kB / 361.3 MB, free: 10.47 MB / 302.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001111/0.1071, allocations: 77.47 kB / 361.4 MB, free: 10.39 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.839e-05/0.1071, allocations: 11.94 kB / 361.4 MB, free: 10.38 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.899e-06/0.1071, allocations: 0 / 361.4 MB, free: 10.38 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.31e-05/0.1071, allocations: 0 / 361.4 MB, free: 10.38 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.389e-05/0.1072, allocations: 4 kB / 361.4 MB, free: 10.38 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.422e-06/0.1072, allocations: 4.156 kB / 361.4 MB, free: 10.37 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.524e-05/0.1072, allocations: 4 kB / 361.4 MB, free: 10.37 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.848e-05/0.1072, allocations: 12.14 kB / 361.4 MB, free: 10.36 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 9.89e-05/0.1073, allocations: 121.8 kB / 361.5 MB, free: 10.23 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001074/0.1075, allocations: 61.62 kB / 361.6 MB, free: 10.16 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.354e-05/0.1075, allocations: 7.969 kB / 361.6 MB, free: 10.15 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.913e-06/0.1075, allocations: 0 / 361.6 MB, free: 10.15 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.61e-06/0.1075, allocations: 4 kB / 361.6 MB, free: 10.14 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.514e-06/0.1075, allocations: 0 / 361.6 MB, free: 10.14 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001285/0.1077, allocations: 157.7 kB / 361.7 MB, free: 9.941 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.1077, allocations: 0 / 361.7 MB, free: 9.941 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.362e-06/0.1077, allocations: 4 kB / 361.7 MB, free: 9.938 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.656e-06/0.1077, allocations: 3.938 kB / 361.7 MB, free: 9.934 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.166e-06/0.1077, allocations: 0 / 361.7 MB, free: 9.934 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.213e-06/0.1077, allocations: 4 kB / 361.8 MB, free: 9.93 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.1077, allocations: 0 / 361.8 MB, free: 9.93 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001571/0.1079, allocations: 96.95 kB / 361.8 MB, free: 9.816 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.927e-05/0.1079, allocations: 77.11 kB / 361.9 MB, free: 9.723 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.564e-05/0.108, allocations: 7.938 kB / 361.9 MB, free: 9.715 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.868e-05/0.108, allocations: 12.08 kB / 361.9 MB, free: 9.703 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.97e-06/0.108, allocations: 7.922 kB / 362 MB, free: 9.695 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.382e-05/0.108, allocations: 11.98 kB / 362 MB, free: 9.684 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.638e-05/0.1081, allocations: 79.28 kB / 362 MB, free: 9.605 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1081, allocations: 0 / 362 MB, free: 9.605 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0001992/0.1083, allocations: 12 kB / 362.1 MB, free: 9.594 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.0001241/0.1084, allocations: 95.25 kB / 362.1 MB, free: 9.492 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001351/0.1086, allocations: 44.05 kB / 362.2 MB, free: 9.449 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.1086, allocations: 0 / 362.2 MB, free: 9.449 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 5.51e-07/0.1086, allocations: 0 / 362.2 MB, free: 9.449 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008016/0.1094, allocations: 0.7258 MB / 362.9 MB, free: 8.699 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003493/0.1098, allocations: 165.8 kB / 363.1 MB, free: 8.508 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003311/0.1101, allocations: 0.6846 MB / 363.8 MB, free: 7.797 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.548e-05/0.1102, allocations: 11.44 kB / 363.8 MB, free: 7.785 MB / 302.1 MB Notification: Performance of SimCode: time 3.4e-07/0.1102, allocations: 0 / 363.8 MB, free: 7.785 MB / 302.1 MB Notification: Performance of Templates: time 0.002287/0.1125, allocations: 0.7697 MB / 364.5 MB, free: 7.023 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/TickBasedPulse/TickBasedPulse.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches