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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001072/0.001072, allocations: 114.2 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001203/0.001203, allocations: 205.2 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.339/1.339, allocations: 227.4 MB / 246.9 MB, free: 10.54 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001157/0.001157, allocations: 67.88 kB / 358.2 MB, free: 13.44 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2585/0.2596, allocations: 50.54 MB / 408.8 MB, free: 1.543 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.002513/0.2622, allocations: 1.447 MB / 410.2 MB, free: 100 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001966/0.2624, allocations: 35.91 kB / 410.2 MB, free: 64 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.404e-05/0.2625, allocations: 0 / 410.2 MB, free: 64 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 2.424e-05/0.2625, allocations: 7.938 kB / 410.2 MB, free: 56 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 6.011e-05/0.2626, allocations: 19.91 kB / 410.3 MB, free: 36 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002235/0.2628, allocations: 19.98 kB / 410.3 MB, free: 16 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 9.809e-05/0.2629, allocations: 40 kB / 410.3 MB, free: 15.97 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.623e-05/0.263, allocations: 11.98 kB / 410.3 MB, free: 15.96 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.137e-05/0.2631, allocations: 15.94 kB / 410.3 MB, free: 15.95 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.633e-05/0.2631, allocations: 15.92 kB / 410.4 MB, free: 15.93 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.737e-05/0.2631, allocations: 4 kB / 410.4 MB, free: 15.93 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.025e-05/0.2632, allocations: 4 kB / 410.4 MB, free: 15.92 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.407e-05/0.2632, allocations: 15.91 kB / 410.4 MB, free: 15.91 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.149e-05/0.2632, allocations: 19.78 kB / 410.4 MB, free: 15.89 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001092/0.2633, allocations: 43.86 kB / 410.4 MB, free: 15.85 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.537e-06/0.2633, allocations: 0 / 410.4 MB, free: 15.85 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.096e-06/0.2634, allocations: 0 / 410.4 MB, free: 15.85 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.044e-06/0.2634, allocations: 3.938 kB / 410.5 MB, free: 15.84 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.0004169/0.2638, allocations: 346.5 kB / 410.8 MB, free: 15.46 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.638e-05/0.2638, allocations: 8.031 kB / 410.8 MB, free: 15.45 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.393e-05/0.2639, allocations: 38.75 kB / 410.8 MB, free: 15.4 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.183e-05/0.2639, allocations: 8.891 kB / 410.8 MB, free: 15.39 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001939/0.2641, allocations: 180.3 kB / 411 MB, free: 15.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 9.621e-05/0.2642, allocations: 34.25 kB / 411.1 MB, free: 15.14 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.379e-05/0.2642, allocations: 4.375 kB / 411.1 MB, free: 15.14 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002703/0.2645, allocations: 127.5 kB / 411.2 MB, free: 15 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.198e-06/0.2645, allocations: 0 / 411.2 MB, free: 15 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.285e-05/0.2645, allocations: 8 kB / 411.2 MB, free: 14.99 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.127e-06/0.2646, allocations: 7.938 kB / 411.2 MB, free: 14.98 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.562e-05/0.2646, allocations: 15.98 kB / 411.2 MB, free: 14.97 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001282/0.2647, allocations: 161.6 kB / 411.4 MB, free: 14.76 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001888/0.2649, allocations: 143.7 kB / 411.5 MB, free: 14.59 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.186e-05/0.265, allocations: 24.84 kB / 411.5 MB, free: 14.57 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.919e-06/0.265, allocations: 3.984 kB / 411.5 MB, free: 14.56 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.189e-05/0.265, allocations: 38.5 kB / 411.6 MB, free: 14.52 MB / 334.1 MB Notification: Performance of pre-optimization done (n=5): time 2.384e-06/0.2651, allocations: 0 / 411.6 MB, free: 14.52 MB / 334.1 MB Notification: Performance of matching and sorting (n=5): time 0.000192/0.2653, allocations: 81.56 kB / 411.7 MB, free: 14.43 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.798e-05/0.2653, allocations: 59.41 kB / 411.7 MB, free: 14.36 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.085e-05/0.2654, allocations: 101.8 kB / 411.8 MB, free: 14.25 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.376e-05/0.2654, allocations: 29.7 kB / 411.8 MB, free: 14.21 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.167e-05/0.2654, allocations: 80.14 kB / 411.9 MB, free: 14.13 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.561e-05/0.2655, allocations: 11.94 kB / 411.9 MB, free: 14.12 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.172e-05/0.2655, allocations: 25.72 kB / 412 MB, free: 14.09 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 8.841e-05/0.2656, allocations: 310.8 kB / 412.3 MB, free: 13.77 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.884e-05/0.2656, allocations: 11.98 kB / 412.3 MB, free: 13.76 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.495e-05/0.2657, allocations: 36.73 kB / 412.3 MB, free: 13.71 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.411e-05/0.2657, allocations: 52.23 kB / 412.4 MB, free: 13.64 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.2657, allocations: 0 / 412.4 MB, free: 13.64 MB / 334.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 9.741e-05/0.2658, allocations: 73.52 kB / 412.4 MB, free: 13.57 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.459e-05/0.2659, allocations: 11.92 kB / 412.4 MB, free: 13.55 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.464e-06/0.2659, allocations: 8.156 kB / 412.5 MB, free: 13.55 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.153e-05/0.2659, allocations: 4 kB / 412.5 MB, free: 13.54 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.331e-05/0.2659, allocations: 7.938 kB / 412.5 MB, free: 13.54 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.752e-06/0.2659, allocations: 4 kB / 412.5 MB, free: 13.53 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.322e-05/0.266, allocations: 0 / 412.5 MB, free: 13.53 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.35e-06/0.266, allocations: 4 kB / 412.5 MB, free: 13.53 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 7.781e-05/0.2661, allocations: 117.8 kB / 412.6 MB, free: 13.4 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.573e-05/0.2662, allocations: 65.62 kB / 412.7 MB, free: 13.33 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.044e-05/0.2662, allocations: 3.969 kB / 412.7 MB, free: 13.32 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.663e-06/0.2662, allocations: 4 kB / 412.7 MB, free: 13.32 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.266e-06/0.2662, allocations: 0 / 412.7 MB, free: 13.32 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.608e-06/0.2662, allocations: 3.984 kB / 412.7 MB, free: 13.31 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.28e-05/0.2663, allocations: 165.7 kB / 412.8 MB, free: 13.1 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.263e-06/0.2663, allocations: 3.938 kB / 412.8 MB, free: 13.1 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.322e-06/0.2663, allocations: 0 / 412.8 MB, free: 13.1 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.298e-06/0.2663, allocations: 3.938 kB / 412.8 MB, free: 13.09 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.164e-06/0.2664, allocations: 3.938 kB / 412.8 MB, free: 13.09 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.353e-06/0.2664, allocations: 0 / 412.8 MB, free: 13.09 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.2664, allocations: 0 / 412.8 MB, free: 13.09 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000127/0.2665, allocations: 93.08 kB / 412.9 MB, free: 12.98 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.391e-05/0.2665, allocations: 84.98 kB / 413 MB, free: 12.88 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.083e-05/0.2666, allocations: 11.98 kB / 413 MB, free: 12.87 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.2e-05/0.2666, allocations: 0 / 413 MB, free: 12.87 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.535e-06/0.2666, allocations: 0 / 413 MB, free: 12.87 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.596e-06/0.2666, allocations: 4 kB / 413 MB, free: 12.86 MB / 334.1 MB Notification: Performance of sorting global known variables: time 4.002e-05/0.2667, allocations: 91.27 kB / 413.1 MB, free: 12.77 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.2667, allocations: 0 / 413.1 MB, free: 12.77 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0001992/0.2669, allocations: 8 kB / 413.1 MB, free: 12.77 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.0004177/0.2673, allocations: 0.6514 MB / 413.8 MB, free: 12.09 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001117/0.2674, allocations: 35.92 kB / 413.8 MB, free: 12.05 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.2674, allocations: 0 / 413.8 MB, free: 12.05 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 6.11e-07/0.2674, allocations: 384 / 413.8 MB, free: 12.05 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006141/0.2681, allocations: 0.7253 MB / 414.5 MB, free: 11.3 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009157/0.269, allocations: 1.218 MB / 415.8 MB, free: 9.984 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002152/0.2692, allocations: 0.6846 MB / 416.4 MB, free: 9.273 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 2.293e-05/0.2693, allocations: 4 kB / 416.4 MB, free: 9.27 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.175e-05/0.2693, allocations: 11.42 kB / 416.5 MB, free: 9.258 MB / 334.1 MB Notification: Performance of SimCode: time 5.61e-07/0.2693, allocations: 4 kB / 416.5 MB, free: 9.254 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01786/0.2872, allocations: 1.689 MB / 418.1 MB, free: 7.707 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.749/8.036, allocations: 4 kB / 418.1 MB, free: 7.703 MB / 334.1 MB (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.0004 Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_TickBasedPulse.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches