Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001756/0.001756, allocations: 113.1 kB / 20.43 MB, free: 1.457 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002345/0.002345, allocations: 217.2 kB / 23.75 MB, free: 4.668 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.465/1.465, allocations: 230.6 MB / 257.5 MB, free: 7.992 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_TickBasedPulse",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_TickBasedPulse",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002224/0.002224, allocations: 47.94 kB / 377.8 MB, free: 3.125 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.281/0.2833, allocations: 53.36 MB / 431.1 MB, free: 6.852 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.002779/0.286, allocations: 1.448 MB / 432.6 MB, free: 5.398 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001916/0.2862, allocations: 43.89 kB / 432.6 MB, free: 5.355 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.373e-05/0.2863, allocations: 7.938 kB / 432.6 MB, free: 5.348 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 2.388e-05/0.2863, allocations: 0 / 432.6 MB, free: 5.348 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 6.008e-05/0.2864, allocations: 3.938 kB / 432.6 MB, free: 5.344 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002534/0.2866, allocations: 42.88 kB / 432.7 MB, free: 5.305 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001047/0.2867, allocations: 35.92 kB / 432.7 MB, free: 5.27 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000101/0.2868, allocations: 4 kB / 432.7 MB, free: 5.266 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.645e-05/0.2869, allocations: 27.86 kB / 432.7 MB, free: 5.238 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.501e-05/0.287, allocations: 23.91 kB / 432.8 MB, free: 5.215 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.767e-05/0.287, allocations: 4 kB / 432.8 MB, free: 5.211 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.074e-05/0.287, allocations: 4 kB / 432.8 MB, free: 5.207 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.26e-05/0.287, allocations: 7.938 kB / 432.8 MB, free: 5.199 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.87e-05/0.2871, allocations: 15.92 kB / 432.8 MB, free: 5.184 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001127/0.2872, allocations: 47.61 kB / 432.8 MB, free: 5.141 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.658e-06/0.2872, allocations: 0 / 432.8 MB, free: 5.141 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.2872, allocations: 0 / 432.8 MB, free: 5.141 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.959e-06/0.2872, allocations: 0 / 432.8 MB, free: 5.141 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.0004819/0.2877, allocations: 270.9 kB / 433.1 MB, free: 4.848 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.181e-05/0.2877, allocations: 12.03 kB / 433.1 MB, free: 4.836 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.316e-05/0.2877, allocations: 38.73 kB / 433.2 MB, free: 4.789 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.069e-05/0.2878, allocations: 8.891 kB / 433.2 MB, free: 4.781 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002082/0.288, allocations: 126.4 kB / 433.3 MB, free: 4.633 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.0001147/0.2881, allocations: 30.27 kB / 433.3 MB, free: 4.598 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.627e-05/0.2881, allocations: 8.375 kB / 433.3 MB, free: 4.59 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003065/0.2884, allocations: 135.5 kB / 433.5 MB, free: 4.445 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.879e-06/0.2884, allocations: 0 / 433.5 MB, free: 4.445 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.476e-06/0.2884, allocations: 0 / 433.5 MB, free: 4.445 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.569e-06/0.2884, allocations: 0 / 433.5 MB, free: 4.445 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.598e-05/0.2885, allocations: 19.98 kB / 433.5 MB, free: 4.426 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001706/0.2887, allocations: 136.7 kB / 433.6 MB, free: 4.25 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001789/0.2889, allocations: 58.69 kB / 433.7 MB, free: 4.184 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.985e-05/0.2889, allocations: 20.84 kB / 433.7 MB, free: 4.16 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.025e-05/0.2889, allocations: 3.938 kB / 433.7 MB, free: 4.156 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.803e-05/0.289, allocations: 42.44 kB / 433.7 MB, free: 4.105 MB / 334.1 MB Notification: Performance of pre-optimization done (n=5): time 1.333e-06/0.289, allocations: 0 / 433.7 MB, free: 4.105 MB / 334.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002116/0.2892, allocations: 69.88 kB / 433.8 MB, free: 4.031 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.897e-05/0.2892, allocations: 59.41 kB / 433.9 MB, free: 3.961 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.888e-05/0.2893, allocations: 109.8 kB / 434 MB, free: 3.844 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.841e-05/0.2893, allocations: 29.7 kB / 434 MB, free: 3.809 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.35e-05/0.2894, allocations: 80.14 kB / 434.1 MB, free: 3.727 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.991e-05/0.2894, allocations: 15.94 kB / 434.1 MB, free: 3.711 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.334e-05/0.2894, allocations: 17.72 kB / 434.1 MB, free: 3.688 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001357/0.2896, allocations: 310.8 kB / 434.4 MB, free: 3.375 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.617e-05/0.2896, allocations: 19.91 kB / 434.4 MB, free: 3.355 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.208e-05/0.2896, allocations: 40.3 kB / 434.5 MB, free: 3.301 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.186e-05/0.2897, allocations: 44.23 kB / 434.5 MB, free: 3.242 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.2897, allocations: 0 / 434.5 MB, free: 3.242 MB / 334.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001101/0.2898, allocations: 85.44 kB / 434.6 MB, free: 3.152 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.796e-05/0.2898, allocations: 11.94 kB / 434.6 MB, free: 3.141 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.36e-06/0.2898, allocations: 0 / 434.6 MB, free: 3.141 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.62e-05/0.2899, allocations: 4 kB / 434.6 MB, free: 3.137 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.29e-05/0.2899, allocations: 8 kB / 434.6 MB, free: 3.129 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.52e-06/0.2899, allocations: 0 / 434.6 MB, free: 3.129 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.174e-05/0.2899, allocations: 0 / 434.6 MB, free: 3.129 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.787e-06/0.2899, allocations: 4 kB / 434.6 MB, free: 3.125 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 0.0001088/0.29, allocations: 118 kB / 434.7 MB, free: 3 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002107/0.2903, allocations: 69.56 kB / 434.8 MB, free: 2.926 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.962e-05/0.2903, allocations: 4.062 kB / 434.8 MB, free: 2.918 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.128e-06/0.2903, allocations: 4 kB / 434.8 MB, free: 2.914 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.189e-06/0.2903, allocations: 3.984 kB / 434.8 MB, free: 2.91 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.966e-06/0.2903, allocations: 96 / 434.8 MB, free: 2.91 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001074/0.2904, allocations: 128.7 kB / 434.9 MB, free: 2.742 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.847e-06/0.2904, allocations: 7.922 kB / 435 MB, free: 2.734 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.912e-06/0.2904, allocations: 0 / 435 MB, free: 2.734 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.176e-06/0.2904, allocations: 7.938 kB / 435 MB, free: 2.727 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.198e-06/0.2904, allocations: 8 kB / 435 MB, free: 2.719 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.032e-06/0.2904, allocations: 256 / 435 MB, free: 2.719 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.82e-07/0.2904, allocations: 0 / 435 MB, free: 2.719 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000134/0.2906, allocations: 93.02 kB / 435.1 MB, free: 2.609 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.177e-05/0.2906, allocations: 7.938 kB / 435.1 MB, free: 2.602 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.74e-05/0.2906, allocations: 3.984 kB / 435.1 MB, free: 2.598 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.389e-05/0.2906, allocations: 8 kB / 435.1 MB, free: 2.59 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.936e-06/0.2906, allocations: 4 kB / 435.1 MB, free: 2.586 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.624e-06/0.2906, allocations: 4 kB / 435.1 MB, free: 2.582 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.093e-05/0.2907, allocations: 87.27 kB / 435.2 MB, free: 2.496 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2907, allocations: 0 / 435.2 MB, free: 2.496 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000188/0.2909, allocations: 4 kB / 435.2 MB, free: 2.492 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.0007457/0.2916, allocations: 0.6515 MB / 435.8 MB, free: 1.812 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001366/0.2918, allocations: 35.92 kB / 435.9 MB, free: 1.777 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.375e-06/0.2918, allocations: 0 / 435.9 MB, free: 1.777 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 5.41e-07/0.2918, allocations: 0 / 435.9 MB, free: 1.777 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007648/0.2925, allocations: 0.7102 MB / 436.6 MB, free: 1.043 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00117/0.2937, allocations: 1.228 MB / 437.8 MB, free: 15.71 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003/0.294, allocations: 0.6807 MB / 438.5 MB, free: 15 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.391e-05/0.294, allocations: 8 kB / 438.5 MB, free: 15 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.886e-05/0.2941, allocations: 19.42 kB / 438.5 MB, free: 14.98 MB / 350.1 MB Notification: Performance of SimCode: time 3.9e-07/0.2941, allocations: 0 / 438.5 MB, free: 14.98 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02875/0.3228, allocations: 1.828 MB / 440.3 MB, free: 13.29 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.55/10.87, allocations: 3.047 kB / 440.3 MB, free: 13.29 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.sim & python3 -m fmpy simulate --output-file Modelica_4.1.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_1_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_TickBasedPulse.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse_res.csv","/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_4.1.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.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse_res.csv. Warning: Get data of variable assignClock1.y from file Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 13.43906901200171]