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.00176/0.001761, allocations: 121.6 kB / 17.78 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002129/0.002129, allocations: 199.9 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.476/1.476, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001882/0.001882, allocations: 59.91 kB / 358.2 MB, free: 13.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2629/0.2648, allocations: 50.54 MB / 408.7 MB, free: 1.531 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.00275/0.2676, allocations: 1.436 MB / 410.2 MB, free: 100 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002027/0.2678, allocations: 43.89 kB / 410.2 MB, free: 56 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.444e-05/0.2679, allocations: 4 kB / 410.2 MB, free: 52 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 3.425e-05/0.268, allocations: 7.938 kB / 410.2 MB, free: 44 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 6.037e-05/0.268, allocations: 7.922 kB / 410.2 MB, free: 36 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002521/0.2683, allocations: 23.48 kB / 410.3 MB, free: 16 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001216/0.2684, allocations: 47.89 kB / 410.3 MB, free: 15.97 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001083/0.2685, allocations: 4 kB / 410.3 MB, free: 15.96 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.211e-05/0.2686, allocations: 19.92 kB / 410.3 MB, free: 15.95 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.467e-05/0.2686, allocations: 15.92 kB / 410.4 MB, free: 15.93 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.947e-05/0.2687, allocations: 4 kB / 410.4 MB, free: 15.93 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.077e-05/0.2687, allocations: 8 kB / 410.4 MB, free: 15.92 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.459e-05/0.2687, allocations: 11.92 kB / 410.4 MB, free: 15.91 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.059e-05/0.2688, allocations: 19.92 kB / 410.4 MB, free: 15.89 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001107/0.2689, allocations: 43.81 kB / 410.4 MB, free: 15.84 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.2689, allocations: 0 / 410.4 MB, free: 15.84 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.637e-06/0.2689, allocations: 0 / 410.4 MB, free: 15.84 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.07e-06/0.2689, allocations: 3.938 kB / 410.4 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.0005351/0.2694, allocations: 346.5 kB / 410.8 MB, free: 15.45 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.281e-05/0.2695, allocations: 12.03 kB / 410.8 MB, free: 15.44 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.881e-05/0.2696, allocations: 34.75 kB / 410.8 MB, free: 15.4 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.314e-05/0.2696, allocations: 12.89 kB / 410.8 MB, free: 15.39 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002478/0.2698, allocations: 176.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 0.0001169/0.27, allocations: 50.17 kB / 411.1 MB, free: 15.12 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.12e-05/0.27, allocations: 384 / 411.1 MB, free: 15.12 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002999/0.2703, allocations: 123.6 kB / 411.2 MB, free: 14.99 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.051e-05/0.2703, allocations: 4 kB / 411.2 MB, free: 14.99 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.706e-06/0.2703, allocations: 7.938 kB / 411.2 MB, free: 14.98 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.188e-06/0.2703, allocations: 0 / 411.2 MB, free: 14.98 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.986e-05/0.2704, allocations: 15.98 kB / 411.2 MB, free: 14.96 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001809/0.2706, allocations: 165.6 kB / 411.4 MB, free: 14.75 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002101/0.2708, allocations: 139.7 kB / 411.5 MB, free: 14.59 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.128e-05/0.2709, allocations: 28.84 kB / 411.5 MB, free: 14.56 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.588e-06/0.2709, allocations: 4 kB / 411.5 MB, free: 14.55 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.138e-05/0.2709, allocations: 34.5 kB / 411.6 MB, free: 14.51 MB / 334.1 MB Notification: Performance of pre-optimization done (n=5): time 3.166e-06/0.271, allocations: 0 / 411.6 MB, free: 14.51 MB / 334.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002219/0.2712, allocations: 81.56 kB / 411.7 MB, free: 14.43 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.791e-05/0.2713, allocations: 59.39 kB / 411.7 MB, free: 14.36 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001002/0.2714, allocations: 102 kB / 411.8 MB, free: 14.25 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.02e-05/0.2714, allocations: 29.7 kB / 411.8 MB, free: 14.21 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.002e-05/0.2714, allocations: 84.12 kB / 411.9 MB, free: 14.12 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.76e-05/0.2715, allocations: 11.95 kB / 411.9 MB, free: 14.11 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.629e-05/0.2715, allocations: 21.72 kB / 412 MB, free: 14.09 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.00016/0.2717, allocations: 314.8 kB / 412.3 MB, free: 13.77 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.911e-05/0.2717, allocations: 8.25 kB / 412.3 MB, free: 13.76 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.688e-05/0.2718, allocations: 36.3 kB / 412.3 MB, free: 13.71 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.836e-05/0.2718, allocations: 56.22 kB / 412.4 MB, free: 13.64 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.2718, allocations: 0 / 412.4 MB, free: 13.64 MB / 334.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001204/0.272, allocations: 73.52 kB / 412.4 MB, free: 13.56 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.619e-05/0.272, allocations: 12.09 kB / 412.4 MB, free: 13.55 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.368e-06/0.272, allocations: 4 kB / 412.4 MB, free: 13.55 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.409e-05/0.272, allocations: 0 / 412.4 MB, free: 13.55 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.893e-05/0.2721, allocations: 8 kB / 412.5 MB, free: 13.54 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.838e-06/0.2721, allocations: 8.094 kB / 412.5 MB, free: 13.53 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.303e-05/0.2721, allocations: 0 / 412.5 MB, free: 13.53 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.064e-06/0.2721, 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 0.0001028/0.2722, allocations: 117.8 kB / 412.6 MB, free: 13.4 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001095/0.2724, allocations: 57.64 kB / 412.6 MB, free: 13.34 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.781e-05/0.2724, allocations: 15.95 kB / 412.7 MB, free: 13.32 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.114e-06/0.2724, allocations: 0 / 412.7 MB, free: 13.32 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.518e-06/0.2724, allocations: 0 / 412.7 MB, free: 13.32 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.246e-06/0.2724, allocations: 0 / 412.7 MB, free: 13.32 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001396/0.2726, allocations: 161.7 kB / 412.8 MB, free: 13.11 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.2726, allocations: 0 / 412.8 MB, free: 13.11 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.105e-06/0.2726, allocations: 3.938 kB / 412.8 MB, free: 13.11 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.33e-06/0.2726, allocations: 3.938 kB / 412.8 MB, free: 13.1 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.047e-05/0.2726, allocations: 7.938 kB / 412.8 MB, free: 13.09 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.176e-06/0.2726, allocations: 3.984 kB / 412.8 MB, free: 13.09 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.815e-06/0.2726, allocations: 4 kB / 412.8 MB, free: 13.09 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001455/0.2728, allocations: 97.09 kB / 412.9 MB, free: 12.97 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.35e-05/0.2729, allocations: 85.08 kB / 413 MB, free: 12.87 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.967e-05/0.2729, allocations: 4 kB / 413 MB, free: 12.87 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.871e-05/0.2729, allocations: 8 kB / 413 MB, free: 12.86 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.916e-06/0.2729, allocations: 0 / 413 MB, free: 12.86 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.562e-06/0.273, allocations: 4 kB / 413 MB, free: 12.86 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.076e-05/0.273, allocations: 83.27 kB / 413.1 MB, free: 12.77 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.273, allocations: 4 kB / 413.1 MB, free: 12.77 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002077/0.2732, allocations: 12 kB / 413.1 MB, free: 12.76 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.0006066/0.2738, allocations: 0.6475 MB / 413.8 MB, free: 12.08 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001277/0.274, allocations: 35.92 kB / 413.8 MB, free: 12.05 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.669e-06/0.274, allocations: 4.375 kB / 413.8 MB, free: 12.04 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 5.01e-07/0.274, allocations: 4 kB / 413.8 MB, free: 12.04 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007879/0.2748, allocations: 0.7103 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.001254/0.2761, allocations: 1.214 MB / 415.7 MB, free: 9.984 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003702/0.2764, allocations: 0.6923 MB / 416.4 MB, free: 9.266 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 2.724e-05/0.2765, allocations: 0 / 416.4 MB, free: 9.266 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.758e-05/0.2765, allocations: 15.44 kB / 416.4 MB, free: 9.25 MB / 334.1 MB Notification: Performance of SimCode: time 2.41e-07/0.2765, allocations: 0 / 416.4 MB, free: 9.25 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02315/0.2997, allocations: 1.688 MB / 418.1 MB, free: 7.703 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.023/8.323, allocations: 2.625 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.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) Reference file matches