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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001718/0.001718, allocations: 114 kB / 20.43 MB, free: 1.457 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001535/0.001535, allocations: 213.2 kB / 23.74 MB, free: 4.672 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.454/1.454, allocations: 230.5 MB / 257.4 MB, free: 7.977 MB / 206.1 MB " [Timeout remaining time 178] 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: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_TickBasedPulse",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_TickBasedPulse",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00185/0.00185, allocations: 63.89 kB / 377.8 MB, free: 2.984 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2663/0.2682, allocations: 53.42 MB / 431.2 MB, free: 6.66 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.002675/0.2709, allocations: 1.448 MB / 432.6 MB, free: 5.207 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001848/0.271, allocations: 39.91 kB / 432.7 MB, free: 5.168 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.666e-05/0.2711, allocations: 3.938 kB / 432.7 MB, free: 5.164 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 2.234e-05/0.2711, allocations: 0 / 432.7 MB, free: 5.164 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 6.994e-05/0.2712, allocations: 11.92 kB / 432.7 MB, free: 5.152 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000229/0.2714, allocations: 27.59 kB / 432.7 MB, free: 5.129 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001058/0.2715, allocations: 43.84 kB / 432.8 MB, free: 5.086 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.387e-05/0.2716, allocations: 8 kB / 432.8 MB, free: 5.078 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.421e-05/0.2717, allocations: 19.92 kB / 432.8 MB, free: 5.059 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.418e-05/0.2717, allocations: 19.92 kB / 432.8 MB, free: 5.039 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.809e-05/0.2717, allocations: 4 kB / 432.8 MB, free: 5.035 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.596e-06/0.2718, allocations: 0 / 432.8 MB, free: 5.035 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.316e-05/0.2718, allocations: 15.92 kB / 432.8 MB, free: 5.02 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.763e-05/0.2718, allocations: 19.92 kB / 432.8 MB, free: 5 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001106/0.2719, allocations: 43.61 kB / 432.9 MB, free: 4.961 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.2719, allocations: 4 kB / 432.9 MB, free: 4.957 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.804e-06/0.2719, allocations: 0 / 432.9 MB, free: 4.957 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.729e-06/0.2719, allocations: 0 / 432.9 MB, free: 4.957 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.0004641/0.2724, allocations: 270.9 kB / 433.2 MB, free: 4.664 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.389e-05/0.2724, allocations: 8.031 kB / 433.2 MB, free: 4.656 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.694e-05/0.2725, allocations: 38.73 kB / 433.2 MB, free: 4.609 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.323e-05/0.2725, allocations: 4.891 kB / 433.2 MB, free: 4.605 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000214/0.2727, allocations: 126.4 kB / 433.3 MB, free: 4.457 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.0001184/0.2729, allocations: 42.2 kB / 433.4 MB, free: 4.41 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.798e-06/0.2729, allocations: 384 / 433.4 MB, free: 4.41 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003009/0.2732, allocations: 131.6 kB / 433.5 MB, free: 4.27 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.356e-06/0.2732, allocations: 0 / 433.5 MB, free: 4.27 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.038e-05/0.2732, allocations: 11.94 kB / 433.5 MB, free: 4.258 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.358e-06/0.2732, allocations: 0 / 433.5 MB, free: 4.258 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.929e-05/0.2732, allocations: 15.98 kB / 433.5 MB, free: 4.242 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001462/0.2734, allocations: 136.7 kB / 433.7 MB, free: 4.066 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001815/0.2736, allocations: 58.69 kB / 433.7 MB, free: 4 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.215e-05/0.2736, allocations: 28.78 kB / 433.7 MB, free: 3.969 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.054e-05/0.2736, allocations: 0 / 433.7 MB, free: 3.969 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.84e-05/0.2737, allocations: 38.44 kB / 433.8 MB, free: 3.922 MB / 334.1 MB Notification: Performance of pre-optimization done (n=5): time 9.62e-07/0.2737, allocations: 0 / 433.8 MB, free: 3.922 MB / 334.1 MB Notification: Performance of matching and sorting (n=5): time 0.0001996/0.2739, allocations: 73.69 kB / 433.9 MB, free: 3.844 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.529e-05/0.2739, allocations: 59.41 kB / 433.9 MB, free: 3.773 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.844e-05/0.274, allocations: 109.8 kB / 434 MB, free: 3.656 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.722e-05/0.274, allocations: 25.7 kB / 434 MB, free: 3.625 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.103e-05/0.2741, allocations: 84.14 kB / 434.1 MB, free: 3.539 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.596e-05/0.2741, allocations: 7.938 kB / 434.1 MB, free: 3.531 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.519e-05/0.2741, allocations: 21.72 kB / 434.2 MB, free: 3.504 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001333/0.2743, allocations: 310.8 kB / 434.5 MB, free: 3.191 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.953e-05/0.2743, allocations: 11.98 kB / 434.5 MB, free: 3.18 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.294e-05/0.2743, allocations: 44.23 kB / 434.5 MB, free: 3.121 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.724e-05/0.2744, allocations: 48.23 kB / 434.6 MB, free: 3.059 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.2744, allocations: 0 / 434.6 MB, free: 3.059 MB / 334.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001079/0.2745, allocations: 77.56 kB / 434.6 MB, free: 2.977 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.438e-05/0.2745, allocations: 7.938 kB / 434.6 MB, free: 2.969 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.072e-06/0.2745, allocations: 7.938 kB / 434.7 MB, free: 2.961 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.212e-05/0.2745, allocations: 0 / 434.7 MB, free: 2.961 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.035e-05/0.2746, allocations: 4 kB / 434.7 MB, free: 2.957 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.243e-06/0.2746, allocations: 4 kB / 434.7 MB, free: 2.953 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.238e-05/0.2746, allocations: 0 / 434.7 MB, free: 2.953 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.38e-06/0.2746, allocations: 4 kB / 434.7 MB, free: 2.949 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.337e-05/0.2747, allocations: 120.8 kB / 434.8 MB, free: 2.824 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000107/0.2748, allocations: 74.03 kB / 434.9 MB, free: 2.746 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.997e-05/0.2748, allocations: 4.062 kB / 434.9 MB, free: 2.738 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.054e-06/0.2748, allocations: 0 / 434.9 MB, free: 2.738 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.63e-06/0.2748, allocations: 3.984 kB / 434.9 MB, free: 2.734 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.675e-06/0.2749, allocations: 0 / 434.9 MB, free: 2.734 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00012/0.275, allocations: 144.7 kB / 435 MB, free: 2.551 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.82e-07/0.275, allocations: 0 / 435 MB, free: 2.551 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.971e-06/0.275, allocations: 0 / 435 MB, free: 2.551 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.266e-06/0.275, allocations: 7.875 kB / 435 MB, free: 2.543 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.913e-06/0.275, allocations: 4 kB / 435 MB, free: 2.539 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.012e-06/0.275, allocations: 0 / 435 MB, free: 2.539 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.91e-07/0.275, allocations: 4 kB / 435 MB, free: 2.535 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001313/0.2751, allocations: 89.02 kB / 435.1 MB, free: 2.43 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.004e-05/0.2751, allocations: 3.938 kB / 435.1 MB, free: 2.426 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.003e-05/0.2752, allocations: 11.98 kB / 435.1 MB, free: 2.414 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.52e-05/0.2752, allocations: 4 kB / 435.1 MB, free: 2.41 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.266e-06/0.2752, allocations: 0 / 435.1 MB, free: 2.41 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.703e-06/0.2752, allocations: 4 kB / 435.1 MB, free: 2.406 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.73e-05/0.2753, allocations: 87.27 kB / 435.2 MB, free: 2.32 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2753, allocations: 0 / 435.2 MB, free: 2.32 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0001946/0.2755, allocations: 8 kB / 435.2 MB, free: 2.312 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.0005417/0.276, allocations: 0.6437 MB / 435.9 MB, free: 1.641 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001171/0.2761, allocations: 39.98 kB / 435.9 MB, free: 1.602 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.2761, allocations: 0 / 435.9 MB, free: 1.602 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.11e-07/0.2761, allocations: 0 / 435.9 MB, free: 1.602 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007753/0.2769, allocations: 0.7137 MB / 436.6 MB, free: 0.8672 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001177/0.2781, allocations: 1.233 MB / 437.9 MB, free: 15.53 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003074/0.2784, allocations: 0.6807 MB / 438.5 MB, free: 14.82 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.442e-05/0.2784, allocations: 4 kB / 438.5 MB, free: 14.82 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.049e-05/0.2784, allocations: 19.42 kB / 438.6 MB, free: 14.8 MB / 350.1 MB Notification: Performance of SimCode: time 4.61e-07/0.2784, allocations: 0 / 438.6 MB, free: 14.8 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02845/0.3069, allocations: 1.824 MB / 440.4 MB, free: 13.09 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.55/10.86, allocations: 11.31 kB / 440.4 MB, free: 13.08 MB / 350.1 MB " [Timeout remaining time 649] (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 & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_TickBasedPulse.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_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_trunk_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_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse_res.csv. Warning: Get data of variable assignClock1.y from file Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 13.391852709999512]