Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_TickBasedPulse",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001451/0.001451, allocations: 112.2 kB / 16.92 MB, free: 6.145 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001703/0.001703, allocations: 187.4 kB / 17.85 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.356/1.356, allocations: 222.9 MB / 241.5 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00163/0.00163, allocations: 44.52 kB / 300.7 MB, free: 5.762 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.104/0.1056, allocations: 49.45 MB / 350.2 MB, free: 4.309 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.002766/0.1085, allocations: 1.421 MB / 351.6 MB, free: 2.867 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001854/0.1087, allocations: 43.78 kB / 351.6 MB, free: 2.824 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.535e-05/0.1087, allocations: 4 kB / 351.6 MB, free: 2.82 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 2.912e-05/0.1088, allocations: 3.938 kB / 351.6 MB, free: 2.816 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 5.352e-05/0.1088, allocations: 3.984 kB / 351.6 MB, free: 2.812 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002429/0.1091, allocations: 31.91 kB / 351.7 MB, free: 2.781 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 8.424e-05/0.1092, allocations: 39.91 kB / 351.7 MB, free: 2.742 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001028/0.1093, allocations: 8 kB / 351.7 MB, free: 2.734 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.187e-05/0.1093, allocations: 19.92 kB / 351.7 MB, free: 2.715 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.773e-05/0.1094, allocations: 15.92 kB / 351.8 MB, free: 2.699 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.681e-05/0.1094, allocations: 4 kB / 351.8 MB, free: 2.695 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.21e-05/0.1094, allocations: 4 kB / 351.8 MB, free: 2.691 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 2.363e-05/0.1095, allocations: 15.91 kB / 351.8 MB, free: 2.676 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 3.177e-05/0.1095, allocations: 15.94 kB / 351.8 MB, free: 2.66 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 8.412e-05/0.1096, allocations: 35.89 kB / 351.8 MB, free: 2.625 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.316e-06/0.1096, allocations: 4 kB / 351.8 MB, free: 2.621 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.1096, allocations: 0 / 351.8 MB, free: 2.621 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.628e-06/0.1096, allocations: 0 / 351.8 MB, free: 2.621 MB / 286.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.0004215/0.11, allocations: 355.6 kB / 352.2 MB, free: 2.223 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.975e-05/0.1101, allocations: 12.03 kB / 352.2 MB, free: 2.211 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.312e-05/0.1101, allocations: 38.73 kB / 352.2 MB, free: 2.164 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.082e-05/0.1102, allocations: 8.844 kB / 352.2 MB, free: 2.156 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001663/0.1103, allocations: 180.2 kB / 352.4 MB, free: 1.941 MB / 286.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.0001211/0.1105, allocations: 34.25 kB / 352.4 MB, free: 1.902 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.325e-05/0.1105, allocations: 12.38 kB / 352.5 MB, free: 1.891 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002712/0.1107, allocations: 123.5 kB / 352.6 MB, free: 1.758 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.257e-06/0.1108, allocations: 3.984 kB / 352.6 MB, free: 1.754 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.289e-05/0.1108, allocations: 8 kB / 352.6 MB, free: 1.746 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.669e-06/0.1108, allocations: 0 / 352.6 MB, free: 1.746 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.828e-05/0.1109, allocations: 12 kB / 352.6 MB, free: 1.734 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001387/0.111, allocations: 161.7 kB / 352.8 MB, free: 1.527 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001826/0.1112, allocations: 143.8 kB / 352.9 MB, free: 1.359 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.252e-05/0.1113, allocations: 24.86 kB / 352.9 MB, free: 1.332 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.018e-05/0.1113, allocations: 0 / 352.9 MB, free: 1.332 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.012e-05/0.1113, allocations: 42.44 kB / 353 MB, free: 1.281 MB / 286.1 MB Notification: Performance of pre-optimization done (n=5): time 9.82e-07/0.1113, allocations: 0 / 353 MB, free: 1.281 MB / 286.1 MB Notification: Performance of matching and sorting (n=5): time 0.0001971/0.1115, allocations: 77.67 kB / 353 MB, free: 1.199 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.057e-05/0.1116, allocations: 59.41 kB / 353.1 MB, free: 1.129 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.674e-05/0.1116, allocations: 105.8 kB / 353.2 MB, free: 1.016 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.307e-05/0.1117, allocations: 25.7 kB / 353.2 MB, free: 0.9844 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.836e-05/0.1117, allocations: 84.14 kB / 353.3 MB, free: 0.8984 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.623e-05/0.1117, allocations: 7.844 kB / 353.3 MB, free: 0.8906 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.564e-05/0.1118, allocations: 25.66 kB / 353.3 MB, free: 0.8594 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001014/0.1119, allocations: 318.8 kB / 353.7 MB, free: 0.5391 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.675e-05/0.1119, allocations: 11.94 kB / 353.7 MB, free: 0.5273 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.546e-05/0.1119, allocations: 40.28 kB / 353.7 MB, free: 484 kB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.761e-05/0.112, allocations: 52.23 kB / 353.8 MB, free: 416 kB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.112, allocations: 0 / 353.8 MB, free: 416 kB / 286.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 9.348e-05/0.1121, allocations: 73.47 kB / 353.8 MB, free: 336 kB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.29e-05/0.1121, allocations: 7.938 kB / 353.8 MB, free: 328 kB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.121e-06/0.1121, allocations: 4 kB / 353.8 MB, free: 324 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.112e-05/0.1122, allocations: 0 / 353.8 MB, free: 324 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.811e-05/0.1122, allocations: 4 kB / 353.8 MB, free: 320 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.742e-06/0.1122, allocations: 4.156 kB / 353.9 MB, free: 316 kB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.458e-05/0.1122, allocations: 7.984 kB / 353.9 MB, free: 308 kB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.829e-06/0.1122, allocations: 4.047 kB / 353.9 MB, free: 304 kB / 286.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 8.061e-05/0.1123, allocations: 117.8 kB / 354 MB, free: 176 kB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.693e-05/0.1124, allocations: 69.56 kB / 354 MB, free: 100 kB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.07e-05/0.1125, allocations: 3.969 kB / 354.1 MB, free: 92 kB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.162e-06/0.1125, allocations: 0 / 354.1 MB, free: 92 kB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.337e-06/0.1125, allocations: 0 / 354.1 MB, free: 92 kB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.517e-06/0.1125, allocations: 0 / 354.1 MB, free: 92 kB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000102/0.1126, allocations: 166.1 kB / 354.2 MB, free: 15.88 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.1126, allocations: 4 kB / 354.2 MB, free: 15.88 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.071e-06/0.1126, allocations: 0 / 354.2 MB, free: 15.88 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.36e-06/0.1126, allocations: 7.938 kB / 354.2 MB, free: 15.87 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.484e-06/0.1126, allocations: 0 / 354.2 MB, free: 15.87 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.222e-06/0.1126, allocations: 0 / 354.2 MB, free: 15.87 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.345e-06/0.1126, allocations: 3.984 kB / 354.2 MB, free: 15.86 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000123/0.1128, allocations: 92.97 kB / 354.3 MB, free: 15.75 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.688e-05/0.1128, allocations: 81.05 kB / 354.4 MB, free: 15.66 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.179e-05/0.1128, allocations: 12 kB / 354.4 MB, free: 15.64 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.082e-05/0.1129, allocations: 3.938 kB / 354.4 MB, free: 15.64 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.276e-06/0.1129, allocations: 0 / 354.4 MB, free: 15.64 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.071e-05/0.1129, allocations: 7.984 kB / 354.4 MB, free: 15.63 MB / 302.1 MB Notification: Performance of sorting global known variables: time 3.632e-05/0.113, allocations: 83.28 kB / 354.5 MB, free: 15.55 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.113, allocations: 0 / 354.5 MB, free: 15.55 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0001901/0.1132, allocations: 8 kB / 354.5 MB, free: 15.54 MB / 302.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.0004495/0.1136, allocations: 0.6552 MB / 355.2 MB, free: 14.86 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001212/0.1137, allocations: 39.92 kB / 355.2 MB, free: 14.82 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.1138, allocations: 0 / 355.2 MB, free: 14.82 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 2.094e-06/0.1138, allocations: 0 / 355.2 MB, free: 14.82 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006526/0.1144, allocations: 0.7301 MB / 355.9 MB, free: 14.07 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001033/0.1155, allocations: 1.219 MB / 357.2 MB, free: 12.74 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002438/0.1157, allocations: 0.6846 MB / 357.8 MB, free: 12.03 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 2.008e-05/0.1157, allocations: 3.984 kB / 357.8 MB, free: 12.03 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.467e-05/0.1158, allocations: 15.44 kB / 357.9 MB, free: 12.01 MB / 302.1 MB Notification: Performance of SimCode: time 3.31e-07/0.1158, allocations: 0 / 357.9 MB, free: 12.01 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0186/0.1344, allocations: 1.649 MB / 359.5 MB, free: 10.49 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.6/7.735, allocations: 8 kB / 359.5 MB, free: 10.48 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.sim & python3 -m fmpy simulate --output-file Modelica_4.0.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.0004 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_TickBasedPulse.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches