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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001368/0.001368, allocations: 103.6 kB / 20.43 MB, free: 1.211 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001404/0.001404, allocations: 186 kB / 23.71 MB, free: 4.434 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.399/1.399, allocations: 225.7 MB / 252.5 MB, free: 12.84 MB / 206.1 MB " [Timeout remaining time 178] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001778/0.001778, allocations: 43.92 kB / 370.4 MB, free: 9.68 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2993/0.3011, allocations: 52.17 MB / 422.6 MB, free: 14.39 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.002692/0.3038, allocations: 1.45 MB / 424 MB, free: 12.93 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002006/0.304, allocations: 47.83 kB / 424.1 MB, free: 12.89 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.297e-05/0.3041, allocations: 4 kB / 424.1 MB, free: 12.88 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 2.978e-05/0.3041, allocations: 3.938 kB / 424.1 MB, free: 12.88 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 5.441e-05/0.3042, allocations: 3.938 kB / 424.1 MB, free: 12.88 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002429/0.3044, allocations: 23.97 kB / 424.1 MB, free: 12.85 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001053/0.3045, allocations: 47.84 kB / 424.1 MB, free: 12.8 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.551e-05/0.3046, allocations: 7.797 kB / 424.1 MB, free: 12.8 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.803e-05/0.3047, allocations: 19.92 kB / 424.2 MB, free: 12.78 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.525e-05/0.3047, allocations: 19.91 kB / 424.2 MB, free: 12.76 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.234e-05/0.3047, allocations: 4 kB / 424.2 MB, free: 12.76 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.246e-05/0.3047, allocations: 8 kB / 424.2 MB, free: 12.75 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.1e-05/0.3048, allocations: 4 kB / 424.2 MB, free: 12.75 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.204e-05/0.3048, allocations: 11.94 kB / 424.2 MB, free: 12.73 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001124/0.3049, allocations: 47.8 kB / 424.3 MB, free: 12.69 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.3049, allocations: 0 / 424.3 MB, free: 12.69 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.873e-06/0.3049, allocations: 0 / 424.3 MB, free: 12.69 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.819e-06/0.3049, allocations: 0 / 424.3 MB, free: 12.69 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.0004688/0.3054, allocations: 272.1 kB / 424.5 MB, free: 12.39 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.225e-05/0.3054, allocations: 12.03 kB / 424.5 MB, free: 12.38 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.381e-05/0.3055, allocations: 38.69 kB / 424.6 MB, free: 12.33 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.993e-05/0.3055, allocations: 8.938 kB / 424.6 MB, free: 12.32 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002178/0.3057, allocations: 126.4 kB / 424.7 MB, free: 12.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.0001109/0.3058, allocations: 40.42 kB / 424.7 MB, free: 12.13 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.542e-05/0.3058, allocations: 4.375 kB / 424.7 MB, free: 12.13 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003086/0.3062, allocations: 131.5 kB / 424.9 MB, free: 11.99 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.035e-06/0.3062, allocations: 0 / 424.9 MB, free: 11.99 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.107e-05/0.3062, allocations: 4 kB / 424.9 MB, free: 11.98 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.32e-06/0.3062, allocations: 3.938 kB / 424.9 MB, free: 11.98 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.605e-05/0.3062, allocations: 23.98 kB / 424.9 MB, free: 11.96 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001478/0.3064, allocations: 128.7 kB / 425 MB, free: 11.79 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001815/0.3066, allocations: 58.62 kB / 425.1 MB, free: 11.72 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.362e-05/0.3066, allocations: 20.86 kB / 425.1 MB, free: 11.7 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.073e-05/0.3066, allocations: 0 / 425.1 MB, free: 11.7 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.893e-05/0.3067, allocations: 38.5 kB / 425.1 MB, free: 11.65 MB / 334.1 MB Notification: Performance of pre-optimization done (n=5): time 9.32e-07/0.3067, allocations: 0 / 425.1 MB, free: 11.65 MB / 334.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002274/0.3069, allocations: 81.62 kB / 425.2 MB, free: 11.57 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.805e-05/0.307, allocations: 59.41 kB / 425.3 MB, free: 11.5 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.411e-05/0.307, allocations: 109.8 kB / 425.4 MB, free: 11.38 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.08e-05/0.3071, allocations: 29.7 kB / 425.4 MB, free: 11.34 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.703e-05/0.3071, allocations: 84.14 kB / 425.5 MB, free: 11.26 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.364e-05/0.3071, allocations: 3.953 kB / 425.5 MB, free: 11.25 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.465e-05/0.3072, allocations: 21.72 kB / 425.5 MB, free: 11.23 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001409/0.3073, allocations: 318.8 kB / 425.8 MB, free: 10.91 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.642e-05/0.3073, allocations: 4 kB / 425.8 MB, free: 10.9 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.661e-05/0.3074, allocations: 40.28 kB / 425.9 MB, free: 10.85 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.254e-05/0.3074, allocations: 52.23 kB / 425.9 MB, free: 10.78 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.3074, allocations: 0 / 425.9 MB, free: 10.78 MB / 334.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001048/0.3075, allocations: 73.56 kB / 426 MB, free: 10.7 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.689e-05/0.3076, allocations: 7.938 kB / 426 MB, free: 10.7 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.929e-06/0.3076, allocations: 0 / 426 MB, free: 10.7 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.598e-05/0.3076, allocations: 4 kB / 426 MB, free: 10.69 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.241e-05/0.3076, allocations: 4 kB / 426 MB, free: 10.69 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.544e-06/0.3076, allocations: 4.141 kB / 426 MB, free: 10.68 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.564e-05/0.3077, allocations: 8 kB / 426 MB, free: 10.68 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.148e-06/0.3077, allocations: 0 / 426 MB, free: 10.68 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 9.515e-05/0.3078, allocations: 121.8 kB / 426.2 MB, free: 10.55 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001039/0.3079, allocations: 69.58 kB / 426.2 MB, free: 10.47 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.218e-05/0.3079, allocations: 8.062 kB / 426.2 MB, free: 10.46 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.262e-06/0.3079, allocations: 0 / 426.2 MB, free: 10.46 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.386e-06/0.3079, allocations: 0 / 426.2 MB, free: 10.46 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.254e-06/0.3079, allocations: 3.938 kB / 426.2 MB, free: 10.46 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001003/0.308, allocations: 124.8 kB / 426.4 MB, free: 10.29 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.605e-06/0.308, allocations: 4 kB / 426.4 MB, free: 10.29 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.881e-06/0.308, allocations: 4.438 kB / 426.4 MB, free: 10.29 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.417e-06/0.308, allocations: 3.938 kB / 426.4 MB, free: 10.28 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.106e-06/0.308, allocations: 0 / 426.4 MB, free: 10.28 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.051e-06/0.308, allocations: 7.984 kB / 426.4 MB, free: 10.27 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.21e-07/0.308, allocations: 0 / 426.4 MB, free: 10.27 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001426/0.3082, allocations: 97.09 kB / 426.5 MB, free: 10.16 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.065e-05/0.3082, allocations: 7.875 kB / 426.5 MB, free: 10.15 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.036e-05/0.3082, allocations: 8 kB / 426.5 MB, free: 10.14 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.138e-05/0.3082, allocations: 4 kB / 426.5 MB, free: 10.14 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.555e-06/0.3082, allocations: 0 / 426.5 MB, free: 10.14 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.176e-06/0.3082, allocations: 3.984 kB / 426.5 MB, free: 10.14 MB / 334.1 MB Notification: Performance of sorting global known variables: time 4.563e-05/0.3083, allocations: 87.28 kB / 426.6 MB, free: 10.05 MB / 334.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3083, allocations: 0 / 426.6 MB, free: 10.05 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0001927/0.3085, allocations: 8 kB / 426.6 MB, free: 10.04 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.0005215/0.309, allocations: 0.6514 MB / 427.2 MB, free: 9.363 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001213/0.3091, allocations: 35.92 kB / 427.3 MB, free: 9.328 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.3091, allocations: 0 / 427.3 MB, free: 9.328 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.81e-07/0.3091, allocations: 0 / 427.3 MB, free: 9.328 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007038/0.3098, allocations: 0.7184 MB / 428 MB, free: 8.586 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001109/0.3109, allocations: 1.218 MB / 429.2 MB, free: 7.262 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.963e-05/0.311, allocations: 75.19 kB / 429.3 MB, free: 7.168 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 1.75e-05/0.311, allocations: 0 / 429.3 MB, free: 7.168 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.768e-05/0.311, allocations: 15.44 kB / 429.3 MB, free: 7.152 MB / 334.1 MB Notification: Performance of SimCode: time 6.31e-07/0.311, allocations: 0 / 429.3 MB, free: 7.152 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03023/0.3413, allocations: 2.284 MB / 431.6 MB, free: 5.02 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.81/11.15, allocations: 6.516 kB / 431.6 MB, free: 5.016 MB / 334.1 MB " [Timeout remaining time 649] (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.000199561 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_TickBasedPulse.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe 2>&1) [Timeout 52.5] 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) [Timeout 660] "Error: Could not read variable assignClock1.y in file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse_res.csv. Warning: Get data of variable assignClock1.y from file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 13.673248414881527]