Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_TickBasedPulse",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_TickBasedPulse",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001247/0.001247, allocations: 112.5 kB / 17.06 MB, free: 6.012 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.0013/0.0013, allocations: 195.9 kB / 18 MB, free: 5.094 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.375/1.375, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001424/0.001424, allocations: 43.92 kB / 350.8 MB, free: 3.773 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2805/0.2819, allocations: 49.44 MB / 400.2 MB, free: 8.41 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.0028/0.2848, allocations: 1.42 MB / 401.6 MB, free: 7.309 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002036/0.285, allocations: 47.67 kB / 401.7 MB, free: 7.27 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.554e-05/0.2851, allocations: 1.156 kB / 401.7 MB, free: 7.27 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 2.858e-05/0.2851, allocations: 3.938 kB / 401.7 MB, free: 7.266 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 5.846e-05/0.2852, allocations: 9.188 kB / 401.7 MB, free: 7.258 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002486/0.2854, allocations: 27.95 kB / 401.7 MB, free: 7.238 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 9.55e-05/0.2855, allocations: 40.39 kB / 401.8 MB, free: 7.215 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001042/0.2856, allocations: 9.188 kB / 401.8 MB, free: 7.211 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.427e-05/0.2857, allocations: 17.8 kB / 401.8 MB, free: 7.199 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.824e-05/0.2858, allocations: 21.47 kB / 401.8 MB, free: 7.184 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.012e-05/0.2858, allocations: 3.094 kB / 401.8 MB, free: 7.184 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.243e-05/0.2858, allocations: 4.25 kB / 401.8 MB, free: 7.184 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.56e-05/0.2858, allocations: 9.281 kB / 401.8 MB, free: 7.176 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 4.494e-05/0.2859, allocations: 19.98 kB / 401.9 MB, free: 7.16 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001219/0.286, allocations: 43.75 kB / 401.9 MB, free: 7.125 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.478e-06/0.286, allocations: 0 / 401.9 MB, free: 7.125 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.286, allocations: 0 / 401.9 MB, free: 7.125 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.933e-06/0.286, allocations: 0 / 401.9 MB, free: 7.125 MB / 318.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.0005316/0.2866, allocations: 357.4 kB / 402.3 MB, free: 6.73 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.097e-05/0.2866, allocations: 15.97 kB / 402.3 MB, free: 6.715 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.294e-05/0.2867, allocations: 34.73 kB / 402.3 MB, free: 6.672 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.036e-05/0.2867, allocations: 4.938 kB / 402.3 MB, free: 6.668 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002644/0.287, allocations: 184.3 kB / 402.5 MB, free: 6.449 MB / 318.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.0001103/0.2871, allocations: 43.94 kB / 402.5 MB, free: 6.402 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.525e-05/0.2871, allocations: 4.375 kB / 402.5 MB, free: 6.398 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002863/0.2874, allocations: 135.5 kB / 402.7 MB, free: 6.254 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.945e-06/0.2874, allocations: 0 / 402.7 MB, free: 6.254 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.777e-06/0.2874, allocations: 0 / 402.7 MB, free: 6.254 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.28e-06/0.2874, allocations: 0 / 402.7 MB, free: 6.254 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.053e-05/0.2875, allocations: 16 kB / 402.7 MB, free: 6.238 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001657/0.2877, allocations: 161.7 kB / 402.8 MB, free: 6.031 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001984/0.2879, allocations: 147.7 kB / 403 MB, free: 5.859 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.54e-05/0.288, allocations: 24.86 kB / 403 MB, free: 5.832 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.688e-06/0.288, allocations: 0 / 403 MB, free: 5.832 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.436e-05/0.288, allocations: 34.5 kB / 403 MB, free: 5.789 MB / 318.1 MB Notification: Performance of pre-optimization done (n=5): time 9.92e-07/0.288, allocations: 8 kB / 403 MB, free: 5.781 MB / 318.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002113/0.2882, allocations: 73.62 kB / 403.1 MB, free: 5.703 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.499e-05/0.2883, allocations: 67.28 kB / 403.2 MB, free: 5.625 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.31e-05/0.2884, allocations: 105.8 kB / 403.3 MB, free: 5.512 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.594e-05/0.2884, allocations: 25.7 kB / 403.3 MB, free: 5.48 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.181e-05/0.2885, allocations: 84.14 kB / 403.4 MB, free: 5.395 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.485e-05/0.2885, allocations: 7.953 kB / 403.4 MB, free: 5.387 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.092e-05/0.2885, allocations: 17.72 kB / 403.4 MB, free: 5.363 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001283/0.2886, allocations: 322.8 kB / 403.7 MB, free: 5.039 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.686e-05/0.2887, allocations: 7.984 kB / 403.7 MB, free: 5.031 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.026e-05/0.2887, allocations: 40.28 kB / 403.8 MB, free: 4.977 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.206e-05/0.2888, allocations: 56.17 kB / 403.8 MB, free: 4.906 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.2888, allocations: 0 / 403.8 MB, free: 4.906 MB / 318.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 9.889e-05/0.2889, allocations: 69.56 kB / 403.9 MB, free: 4.832 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.452e-05/0.2889, allocations: 11.94 kB / 403.9 MB, free: 4.82 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.409e-06/0.2889, allocations: 0 / 403.9 MB, free: 4.82 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.128e-05/0.2889, allocations: 160 / 403.9 MB, free: 4.82 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.862e-05/0.289, allocations: 8 kB / 403.9 MB, free: 4.812 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.554e-06/0.289, allocations: 7.984 kB / 403.9 MB, free: 4.805 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.304e-05/0.289, allocations: 448 / 403.9 MB, free: 4.805 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.224e-06/0.289, allocations: 8 kB / 403.9 MB, free: 4.797 MB / 318.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 8.54e-05/0.2891, allocations: 117.8 kB / 404.1 MB, free: 4.672 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001047/0.2892, allocations: 69.58 kB / 404.1 MB, free: 4.598 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.377e-05/0.2893, allocations: 7.969 kB / 404.1 MB, free: 4.586 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.172e-06/0.2893, allocations: 0 / 404.1 MB, free: 4.586 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.957e-06/0.2893, allocations: 4 kB / 404.1 MB, free: 4.582 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.465e-06/0.2893, allocations: 4 kB / 404.1 MB, free: 4.578 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001094/0.2894, allocations: 157.7 kB / 404.3 MB, free: 4.375 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.52e-07/0.2894, allocations: 0 / 404.3 MB, free: 4.375 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.991e-06/0.2894, allocations: 0 / 404.3 MB, free: 4.375 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.416e-06/0.2894, allocations: 3.938 kB / 404.3 MB, free: 4.371 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.178e-05/0.2895, allocations: 3.984 kB / 404.3 MB, free: 4.367 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/0.2895, allocations: 7.938 kB / 404.3 MB, free: 4.359 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.22e-07/0.2895, allocations: 0 / 404.3 MB, free: 4.359 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000138/0.2896, allocations: 93.06 kB / 404.4 MB, free: 4.25 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.797e-05/0.2897, allocations: 85 kB / 404.5 MB, free: 4.148 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.645e-05/0.2897, allocations: 4 kB / 404.5 MB, free: 4.145 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.508e-05/0.2897, allocations: 7.984 kB / 404.5 MB, free: 4.137 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.195e-06/0.2897, allocations: 0 / 404.5 MB, free: 4.137 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.841e-06/0.2898, allocations: 0 / 404.5 MB, free: 4.137 MB / 318.1 MB Notification: Performance of sorting global known variables: time 4.81e-05/0.2898, allocations: 83.28 kB / 404.6 MB, free: 4.055 MB / 318.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2898, allocations: 0 / 404.6 MB, free: 4.055 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0001984/0.29, allocations: 12 kB / 404.6 MB, free: 4.043 MB / 318.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.0005112/0.2905, allocations: 0.6554 MB / 405.2 MB, free: 3.359 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001258/0.2907, allocations: 39.92 kB / 405.3 MB, free: 3.32 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.2907, allocations: 0 / 405.3 MB, free: 3.32 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 4.91e-07/0.2907, allocations: 0 / 405.3 MB, free: 3.32 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006778/0.2914, allocations: 0.7262 MB / 406 MB, free: 2.57 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001115/0.2925, allocations: 1.217 MB / 407.2 MB, free: 1.25 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003024/0.2928, allocations: 0.6883 MB / 407.9 MB, free: 0.5352 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 2.062e-05/0.2928, allocations: 0 / 407.9 MB, free: 0.5352 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.841e-05/0.2929, allocations: 15.44 kB / 407.9 MB, free: 0.5195 MB / 318.1 MB Notification: Performance of SimCode: time 2.61e-07/0.2929, allocations: 0 / 407.9 MB, free: 0.5195 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02106/0.314, allocations: 1.68 MB / 409.6 MB, free: 14.98 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.804/8.118, allocations: 18.47 kB / 409.6 MB, free: 14.97 MB / 334.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_TickBasedPulse.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/TickBasedPulse/TickBasedPulse.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches