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.001033/0.001033, allocations: 113 kB / 17.07 MB, free: 6.008 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.001157/0.001158, allocations: 191 kB / 18 MB, free: 5.09 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.373/1.373, allocations: 222.9 MB / 241.7 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001174/0.001174, allocations: 44.06 kB / 350.8 MB, free: 3.801 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.284/0.2852, allocations: 49.45 MB / 400.2 MB, free: 8.586 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.002648/0.2879, allocations: 1.424 MB / 401.7 MB, free: 7.484 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003202/0.2883, allocations: 43.5 kB / 401.7 MB, free: 7.449 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.032e-05/0.2883, allocations: 1.125 kB / 401.7 MB, free: 7.449 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 2.977e-05/0.2884, allocations: 7.922 kB / 401.7 MB, free: 7.441 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 6.403e-05/0.2884, allocations: 9.266 kB / 401.7 MB, free: 7.434 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002495/0.2887, allocations: 19.2 kB / 401.7 MB, free: 7.422 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 8.895e-05/0.2888, allocations: 40.22 kB / 401.8 MB, free: 7.398 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.861e-05/0.2889, allocations: 17.73 kB / 401.8 MB, free: 7.387 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.733e-05/0.289, allocations: 17.48 kB / 401.8 MB, free: 7.375 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.858e-05/0.289, allocations: 17.61 kB / 401.8 MB, free: 7.363 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.701e-05/0.289, allocations: 3.312 kB / 401.8 MB, free: 7.363 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.233e-05/0.2891, allocations: 7.312 kB / 401.8 MB, free: 7.359 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.177e-05/0.2891, allocations: 11.92 kB / 401.9 MB, free: 7.348 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 3.731e-05/0.2891, allocations: 19.92 kB / 401.9 MB, free: 7.328 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 9.697e-05/0.2892, allocations: 35.89 kB / 401.9 MB, free: 7.293 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.207e-06/0.2892, allocations: 0 / 401.9 MB, free: 7.293 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.2892, allocations: 0 / 401.9 MB, free: 7.293 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.662e-06/0.2893, allocations: 4 kB / 401.9 MB, free: 7.289 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.0004475/0.2897, allocations: 358.4 kB / 402.3 MB, free: 6.891 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.486e-05/0.2897, allocations: 8.031 kB / 402.3 MB, free: 6.883 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.448e-05/0.2898, allocations: 46.62 kB / 402.3 MB, free: 6.828 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.677e-05/0.2898, allocations: 0.9375 kB / 402.3 MB, free: 6.828 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001972/0.29, allocations: 184.2 kB / 402.5 MB, free: 6.609 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 9.904e-05/0.2901, allocations: 34.27 kB / 402.5 MB, free: 6.57 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.653e-05/0.2901, allocations: 8.359 kB / 402.5 MB, free: 6.562 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002782/0.2904, allocations: 131.5 kB / 402.7 MB, free: 6.422 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.206e-06/0.2905, allocations: 0 / 402.7 MB, free: 6.422 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.438e-06/0.2905, allocations: 0 / 402.7 MB, free: 6.422 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.372e-06/0.2905, allocations: 4 kB / 402.7 MB, free: 6.418 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.907e-05/0.2906, allocations: 15.98 kB / 402.7 MB, free: 6.402 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001983/0.2908, allocations: 161.7 kB / 402.8 MB, free: 6.195 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001925/0.291, allocations: 147.7 kB / 403 MB, free: 6.023 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.815e-05/0.2911, allocations: 28.84 kB / 403 MB, free: 5.992 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.642e-06/0.2911, allocations: 0 / 403 MB, free: 5.992 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.139e-05/0.2911, allocations: 34.5 kB / 403 MB, free: 5.949 MB / 318.1 MB Notification: Performance of pre-optimization done (n=5): time 9.72e-07/0.2911, allocations: 0 / 403 MB, free: 5.949 MB / 318.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002006/0.2913, allocations: 77.64 kB / 403.1 MB, free: 5.867 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.267e-05/0.2914, allocations: 63.33 kB / 403.2 MB, free: 5.793 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.239e-05/0.2915, allocations: 105.8 kB / 403.3 MB, free: 5.68 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.816e-05/0.2915, allocations: 33.7 kB / 403.3 MB, free: 5.641 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.1e-05/0.2915, allocations: 84.12 kB / 403.4 MB, free: 5.555 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.71e-05/0.2915, allocations: 3.953 kB / 403.4 MB, free: 5.551 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.547e-05/0.2916, allocations: 21.72 kB / 403.4 MB, free: 5.523 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000103/0.2917, allocations: 318.8 kB / 403.7 MB, free: 5.203 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.882e-05/0.2917, allocations: 8 kB / 403.7 MB, free: 5.195 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.016e-05/0.2918, allocations: 40.3 kB / 403.8 MB, free: 5.141 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.646e-05/0.2918, allocations: 48.22 kB / 403.8 MB, free: 5.078 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.827e-06/0.2918, allocations: 4.438 kB / 403.8 MB, free: 5.074 MB / 318.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 9.762e-05/0.2919, allocations: 69.56 kB / 403.9 MB, free: 5 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.629e-05/0.292, allocations: 7.938 kB / 403.9 MB, free: 4.992 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.723e-06/0.292, allocations: 4 kB / 403.9 MB, free: 4.988 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.597e-05/0.292, allocations: 0 / 403.9 MB, free: 4.988 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.553e-05/0.292, allocations: 8 kB / 403.9 MB, free: 4.98 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.32e-06/0.2921, allocations: 0 / 403.9 MB, free: 4.98 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.516e-05/0.2921, allocations: 8.156 kB / 403.9 MB, free: 4.973 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.701e-06/0.2921, allocations: 8 kB / 403.9 MB, free: 4.965 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.373e-05/0.2922, allocations: 117.8 kB / 404.1 MB, free: 4.84 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001013/0.2923, allocations: 65.58 kB / 404.1 MB, free: 4.77 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.415e-05/0.2923, allocations: 11.95 kB / 404.1 MB, free: 4.754 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.403e-06/0.2923, allocations: 0 / 404.1 MB, free: 4.754 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.847e-06/0.2923, allocations: 0 / 404.1 MB, free: 4.754 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.555e-06/0.2923, allocations: 3.938 kB / 404.1 MB, free: 4.75 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001005/0.2924, allocations: 157.7 kB / 404.3 MB, free: 4.547 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-06/0.2925, allocations: 0 / 404.3 MB, free: 4.547 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.981e-06/0.2925, allocations: 8 kB / 404.3 MB, free: 4.539 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.357e-06/0.2925, allocations: 3.938 kB / 404.3 MB, free: 4.535 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.698e-06/0.2925, allocations: 4 kB / 404.3 MB, free: 4.531 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.021e-06/0.2925, allocations: 3.938 kB / 404.3 MB, free: 4.527 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.2925, allocations: 0 / 404.3 MB, free: 4.527 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001312/0.2926, allocations: 93.05 kB / 404.4 MB, free: 4.418 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.625e-05/0.2927, allocations: 85 kB / 404.5 MB, free: 4.316 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.704e-05/0.2927, allocations: 0 / 404.5 MB, free: 4.316 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.226e-05/0.2928, allocations: 12 kB / 404.5 MB, free: 4.305 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.334e-06/0.2928, allocations: 0 / 404.5 MB, free: 4.305 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.586e-06/0.2928, allocations: 4 kB / 404.5 MB, free: 4.301 MB / 318.1 MB Notification: Performance of sorting global known variables: time 3.832e-05/0.2928, allocations: 87.27 kB / 404.6 MB, free: 4.215 MB / 318.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.2928, allocations: 0 / 404.6 MB, free: 4.215 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0001839/0.293, allocations: 12 kB / 404.6 MB, free: 4.203 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.0005701/0.2936, allocations: 0.6553 MB / 405.3 MB, free: 3.52 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001115/0.2937, allocations: 31.92 kB / 405.3 MB, free: 3.488 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.2937, allocations: 0 / 405.3 MB, free: 3.488 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 4.81e-07/0.2937, allocations: 4 kB / 405.3 MB, free: 3.484 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006096/0.2943, allocations: 0.7146 MB / 406 MB, free: 2.746 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001017/0.2954, allocations: 1.222 MB / 407.2 MB, free: 1.422 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003689/0.2958, allocations: 0.6883 MB / 407.9 MB, free: 0.707 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 2.163e-05/0.2958, allocations: 7.984 kB / 407.9 MB, free: 0.6992 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.579e-05/0.2958, allocations: 15.44 kB / 407.9 MB, free: 0.6836 MB / 318.1 MB Notification: Performance of SimCode: time 2.2e-07/0.2958, allocations: 0 / 407.9 MB, free: 0.6836 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01846/0.3143, allocations: 1.688 MB / 409.6 MB, free: 15.14 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.61/7.925, allocations: 17.14 kB / 409.6 MB, free: 15.13 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