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.0009097/0.0009097, allocations: 80.34 kB / 20.67 MB, free: 3.891 MB / 18.57 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.0008629/0.0008629, allocations: 156.9 kB / 23.95 MB, free: 0.6133 MB / 18.57 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 0.8995/0.8995, allocations: 177 MB / 204.1 MB, free: 5.773 MB / 186.7 MB " [Timeout remaining time 179] 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 1.663e-06/1.663e-06, allocations: 0 / 324.5 MB, free: 15.93 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.137e-05/2.303e-05, allocations: 2.281 kB / 324.5 MB, free: 15.93 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.002061/0.002084, allocations: 1.455 MB / 326 MB, free: 14.46 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0001899/0.002274, allocations: 39.83 kB / 326 MB, free: 14.43 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.453e-05/0.002339, allocations: 7.938 kB / 326 MB, free: 14.42 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 2.782e-05/0.002366, allocations: 3.938 kB / 326 MB, free: 14.41 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 5.762e-05/0.002424, allocations: 0 / 326 MB, free: 14.41 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00025/0.002674, allocations: 31.84 kB / 326.1 MB, free: 14.38 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 8.691e-05/0.002761, allocations: 43.84 kB / 326.1 MB, free: 14.34 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.608e-05/0.002857, allocations: 8 kB / 326.1 MB, free: 14.33 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.785e-05/0.002925, allocations: 19.97 kB / 326.1 MB, free: 14.31 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.136e-05/0.002956, allocations: 19.92 kB / 326.1 MB, free: 14.29 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.25e-05/0.002979, allocations: 0 / 326.1 MB, free: 14.29 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.634e-06/0.002986, allocations: 8 kB / 326.1 MB, free: 14.29 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.039e-05/0.003007, allocations: 11.98 kB / 326.2 MB, free: 14.27 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.711e-05/0.003034, allocations: 15.98 kB / 326.2 MB, free: 14.26 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001034/0.003137, allocations: 43.86 kB / 326.2 MB, free: 14.21 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.264e-06/0.003139, allocations: 0 / 326.2 MB, free: 14.21 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.943e-06/0.003141, allocations: 0 / 326.2 MB, free: 14.21 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.569e-06/0.003146, allocations: 0 / 326.2 MB, free: 14.21 MB / 298.7 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.0004184/0.003564, allocations: 270.3 kB / 326.5 MB, free: 13.92 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.591e-05/0.00361, allocations: 15.92 kB / 326.5 MB, free: 13.9 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.086e-05/0.003651, allocations: 38.75 kB / 326.5 MB, free: 13.86 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.222e-05/0.003683, allocations: 12.89 kB / 326.5 MB, free: 13.84 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002124/0.003896, allocations: 113.8 kB / 326.7 MB, free: 13.71 MB / 298.7 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.0001329/0.004029, allocations: 42.19 kB / 326.7 MB, free: 13.66 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.183e-05/0.004041, allocations: 4.375 kB / 326.7 MB, free: 13.66 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002738/0.004314, allocations: 123.9 kB / 326.8 MB, free: 13.52 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.508e-06/0.004324, allocations: 192 / 326.8 MB, free: 13.52 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.057e-05/0.004334, allocations: 384 / 326.8 MB, free: 13.52 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.642e-06/0.004341, allocations: 3.938 kB / 326.8 MB, free: 13.52 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.327e-05/0.004404, allocations: 23.92 kB / 326.9 MB, free: 13.5 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001358/0.00454, allocations: 132.7 kB / 327 MB, free: 13.32 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001558/0.004696, allocations: 54.69 kB / 327 MB, free: 13.26 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.328e-05/0.004729, allocations: 20.86 kB / 327.1 MB, free: 13.24 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.096e-05/0.00474, allocations: 3.984 kB / 327.1 MB, free: 13.23 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.132e-05/0.004761, allocations: 38.56 kB / 327.1 MB, free: 13.19 MB / 298.7 MB Notification: Performance of pre-optimization done (n=5): time 1.162e-06/0.004763, allocations: 3.938 kB / 327.1 MB, free: 13.18 MB / 298.7 MB Notification: Performance of matching and sorting (n=5): time 0.000163/0.004926, allocations: 77.56 kB / 327.2 MB, free: 13.1 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.769e-05/0.004973, allocations: 55.41 kB / 327.2 MB, free: 13.04 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.75e-05/0.005031, allocations: 105.8 kB / 327.3 MB, free: 12.92 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.007e-05/0.005041, allocations: 29.7 kB / 327.4 MB, free: 12.89 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.878e-05/0.00507, allocations: 88.14 kB / 327.5 MB, free: 12.8 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.304e-05/0.005083, allocations: 3.953 kB / 327.5 MB, free: 12.79 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.583e-05/0.005109, allocations: 21.7 kB / 327.5 MB, free: 12.77 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.897e-05/0.005187, allocations: 310.8 kB / 327.8 MB, free: 12.45 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.098e-05/0.005198, allocations: 8 kB / 327.8 MB, free: 12.45 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.846e-05/0.005217, allocations: 13.72 kB / 327.8 MB, free: 12.43 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.51e-05/0.005252, allocations: 37.58 kB / 327.8 MB, free: 12.38 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.005254, allocations: 0 / 327.8 MB, free: 12.38 MB / 298.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 5.376e-05/0.005308, allocations: 53.64 kB / 327.9 MB, free: 12.32 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.203e-05/0.00532, allocations: 4 kB / 327.9 MB, free: 12.32 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.689e-06/0.005324, allocations: 0 / 327.9 MB, free: 12.32 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.513e-05/0.00534, allocations: 7.938 kB / 327.9 MB, free: 12.31 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.675e-05/0.005376, allocations: 3.984 kB / 327.9 MB, free: 12.31 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.173e-05/0.005388, allocations: 7.984 kB / 327.9 MB, free: 12.3 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.186e-05/0.0054, allocations: 4 kB / 327.9 MB, free: 12.3 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.055e-06/0.005403, allocations: 0 / 327.9 MB, free: 12.3 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 4 ($CLKPRE.pulse.startOutput,pulse.startOutput,$CLKPRE.pulse.counter,pulse.counter) * Number of discrete states: 0 () * Number of clocked states: 2 (pulse.startOutput,pulse.counter) * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * 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 6.553e-05/0.005469, allocations: 113.9 kB / 328 MB, free: 12.18 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.748e-05/0.005536, allocations: 73.69 kB / 328.1 MB, free: 12.1 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.798e-05/0.005554, allocations: 8.125 kB / 328.1 MB, free: 12.09 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.135e-06/0.005557, allocations: 3.938 kB / 328.1 MB, free: 12.09 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.068e-06/0.005561, allocations: 7.938 kB / 328.1 MB, free: 12.08 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.786e-06/0.005564, allocations: 0 / 328.1 MB, free: 12.08 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.109e-05/0.005625, allocations: 128.7 kB / 328.2 MB, free: 11.91 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.92e-07/0.005626, allocations: 448 / 328.2 MB, free: 11.91 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.466e-06/0.00563, allocations: 0 / 328.2 MB, free: 11.91 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.52e-07/0.00563, allocations: 0 / 328.2 MB, free: 11.91 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.706e-06/0.005639, allocations: 11.98 kB / 328.3 MB, free: 11.9 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.773e-06/0.005641, allocations: 3.938 kB / 328.3 MB, free: 11.89 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.005642, allocations: 4 kB / 328.3 MB, free: 11.89 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.631e-05/0.005718, allocations: 85.08 kB / 328.3 MB, free: 11.79 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.874e-06/0.005726, allocations: 4 kB / 328.4 MB, free: 11.79 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.439e-05/0.005741, allocations: 0 / 328.4 MB, free: 11.79 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.283e-05/0.005774, allocations: 11.94 kB / 328.4 MB, free: 11.77 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.596e-06/0.005777, allocations: 3.984 kB / 328.4 MB, free: 11.77 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.671e-06/0.005783, allocations: 4 kB / 328.4 MB, free: 11.77 MB / 298.7 MB Notification: Performance of sorting global known variables: time 2.748e-05/0.00581, allocations: 83.28 kB / 328.5 MB, free: 11.68 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.00581, allocations: 3.938 kB / 328.5 MB, free: 11.68 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001254/0.005936, allocations: 4 kB / 328.5 MB, free: 11.68 MB / 298.7 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.0003143/0.00625, allocations: 0.6514 MB / 329.1 MB, free: 11 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 8.752e-05/0.006338, allocations: 31.92 kB / 329.1 MB, free: 10.96 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.734e-06/0.006339, allocations: 0 / 329.1 MB, free: 10.96 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 4.91e-07/0.00634, allocations: 0 / 329.1 MB, free: 10.96 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004313/0.006771, allocations: 0.7149 MB / 329.9 MB, free: 10.23 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006694/0.00744, allocations: 1.166 MB / 331 MB, free: 8.969 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.456e-05/0.007485, allocations: 71.59 kB / 331.1 MB, free: 8.879 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 2.015e-05/0.007505, allocations: 0 / 331.1 MB, free: 8.879 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.65e-05/0.007542, allocations: 16.5 kB / 331.1 MB, free: 8.863 MB / 298.7 MB Notification: Performance of SimCode: time 5.71e-07/0.007542, allocations: 0 / 331.1 MB, free: 8.863 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01486/0.0224, allocations: 2.358 MB / 333.5 MB, free: 6.613 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.64/6.663, allocations: 12.05 kB / 333.5 MB, free: 6.602 MB / 298.7 MB " [Timeout remaining time 653] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/TickBasedPulse/TickBasedPulse.csv","/var/lib/jenkins/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: 8.431675775907934]