Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001998/0.001998, allocations: 128.5 kB / 17.79 MB, free: 5.246 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002904/0.002904, allocations: 207.2 kB / 20.75 MB, free: 2.297 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.548/1.548, allocations: 230.6 MB / 254.1 MB, free: 15.1 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_TickBasedPulse",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_TickBasedPulse",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001518/0.001518, allocations: 55.91 kB / 373 MB, free: 10.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1142/0.1157, allocations: 53.33 MB / 426.3 MB, free: 4.789 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.00279/0.1185, allocations: 1.447 MB / 427.8 MB, free: 3.332 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002037/0.1187, allocations: 43.84 kB / 427.8 MB, free: 3.289 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.534e-05/0.1187, allocations: 0 / 427.8 MB, free: 3.289 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 3.156e-05/0.1188, allocations: 3.938 kB / 427.8 MB, free: 3.285 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.631e-05/0.1188, allocations: 7.922 kB / 427.8 MB, free: 3.277 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002703/0.1191, allocations: 27.47 kB / 427.8 MB, free: 3.254 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001023/0.1192, allocations: 39.91 kB / 427.9 MB, free: 3.215 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.576e-05/0.1193, allocations: 8 kB / 427.9 MB, free: 3.207 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.463e-05/0.1193, allocations: 23.92 kB / 427.9 MB, free: 3.184 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.073e-05/0.1194, allocations: 15.92 kB / 427.9 MB, free: 3.168 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.934e-05/0.1194, allocations: 4 kB / 427.9 MB, free: 3.164 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.125e-05/0.1194, allocations: 4 kB / 427.9 MB, free: 3.16 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.298e-05/0.1194, allocations: 11.98 kB / 427.9 MB, free: 3.148 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.6e-05/0.1195, allocations: 27.8 kB / 428 MB, free: 3.121 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001005/0.1196, allocations: 39.81 kB / 428 MB, free: 3.082 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.1196, allocations: 0 / 428 MB, free: 3.082 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.1196, allocations: 0 / 428 MB, free: 3.082 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.028e-05/0.1196, allocations: 0 / 428 MB, free: 3.082 MB / 350.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.0005164/0.1201, allocations: 351.4 kB / 428.3 MB, free: 2.688 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.498e-05/0.1201, allocations: 12.03 kB / 428.4 MB, free: 2.676 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.182e-05/0.1202, allocations: 42.67 kB / 428.4 MB, free: 2.625 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.635e-05/0.1202, allocations: 12.89 kB / 428.4 MB, free: 2.613 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002353/0.1204, allocations: 176.3 kB / 428.6 MB, free: 2.402 MB / 350.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.0001077/0.1206, allocations: 38.25 kB / 428.6 MB, free: 2.359 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.66e-05/0.1206, allocations: 4.375 kB / 428.6 MB, free: 2.355 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000336/0.1209, allocations: 131.5 kB / 428.8 MB, free: 2.215 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.017e-06/0.1209, allocations: 0 / 428.8 MB, free: 2.215 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.769e-06/0.1209, allocations: 0 / 428.8 MB, free: 2.215 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.959e-06/0.1209, allocations: 0 / 428.8 MB, free: 2.215 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.969e-05/0.121, allocations: 12 kB / 428.8 MB, free: 2.203 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001709/0.1212, allocations: 169.6 kB / 428.9 MB, free: 1.988 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002227/0.1214, allocations: 139.7 kB / 429.1 MB, free: 1.824 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.028e-05/0.1214, allocations: 20.86 kB / 429.1 MB, free: 1.801 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.025e-05/0.1214, allocations: 0 / 429.1 MB, free: 1.801 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.479e-05/0.1215, allocations: 34.5 kB / 429.1 MB, free: 1.758 MB / 350.1 MB Notification: Performance of pre-optimization done (n=5): time 3.436e-06/0.1215, allocations: 0 / 429.1 MB, free: 1.758 MB / 350.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002338/0.1217, allocations: 77.67 kB / 429.2 MB, free: 1.676 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.903e-05/0.1218, allocations: 59.41 kB / 429.3 MB, free: 1.605 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.587e-05/0.1219, allocations: 113.8 kB / 429.4 MB, free: 1.484 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.586e-05/0.1219, allocations: 25.7 kB / 429.4 MB, free: 1.453 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.306e-05/0.1219, allocations: 84.14 kB / 429.5 MB, free: 1.367 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.188e-05/0.122, allocations: 7.891 kB / 429.5 MB, free: 1.359 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.374e-05/0.122, allocations: 21.72 kB / 429.5 MB, free: 1.332 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001313/0.1221, allocations: 314.8 kB / 429.8 MB, free: 1.016 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.916e-05/0.1221, allocations: 8 kB / 429.8 MB, free: 1.008 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.451e-05/0.1222, allocations: 44.28 kB / 429.9 MB, free: 0.9492 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.469e-05/0.1223, allocations: 48.23 kB / 429.9 MB, free: 0.8867 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.1223, allocations: 0 / 429.9 MB, free: 0.8867 MB / 350.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.000138/0.1224, allocations: 77.52 kB / 430 MB, free: 0.8047 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.824e-05/0.1224, allocations: 11.94 kB / 430 MB, free: 0.793 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.358e-06/0.1224, allocations: 0 / 430 MB, free: 0.793 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.481e-05/0.1224, allocations: 0 / 430 MB, free: 0.793 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.305e-05/0.1225, allocations: 4 kB / 430 MB, free: 0.7891 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.949e-06/0.1225, allocations: 11.92 kB / 430 MB, free: 0.7773 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.489e-05/0.1225, allocations: 496 / 430 MB, free: 0.7773 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.668e-06/0.1225, allocations: 7.984 kB / 430 MB, free: 0.7695 MB / 350.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.686e-05/0.1226, allocations: 121.9 kB / 430.1 MB, free: 0.6406 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001125/0.1227, allocations: 69.62 kB / 430.2 MB, free: 0.5664 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.29e-05/0.1228, allocations: 3.969 kB / 430.2 MB, free: 0.5547 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.783e-06/0.1228, allocations: 0 / 430.2 MB, free: 0.5547 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.787e-06/0.1228, allocations: 0 / 430.2 MB, free: 0.5547 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.089e-06/0.1228, allocations: 4 kB / 430.2 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001168/0.1229, allocations: 161.7 kB / 430.4 MB, free: 352 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.21e-07/0.1229, allocations: 0 / 430.4 MB, free: 352 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.132e-06/0.1229, allocations: 0 / 430.4 MB, free: 352 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.727e-06/0.1229, allocations: 3.938 kB / 430.4 MB, free: 348 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.026e-05/0.1229, allocations: 7.984 kB / 430.4 MB, free: 340 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.012e-06/0.1229, allocations: 0 / 430.4 MB, free: 340 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.422e-06/0.1229, allocations: 4 kB / 430.4 MB, free: 336 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001352/0.123, allocations: 89.02 kB / 430.5 MB, free: 228 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.061e-05/0.1231, allocations: 81.05 kB / 430.6 MB, free: 128 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.219e-05/0.1231, allocations: 8 kB / 430.6 MB, free: 120 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.203e-05/0.1232, allocations: 7.922 kB / 430.6 MB, free: 112 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.56e-06/0.1232, allocations: 4 kB / 430.6 MB, free: 108 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.263e-06/0.1232, allocations: 4 kB / 430.6 MB, free: 104 kB / 350.1 MB Notification: Performance of sorting global known variables: time 4.962e-05/0.1233, allocations: 83.28 kB / 430.7 MB, free: 20 kB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1233, allocations: 0 / 430.7 MB, free: 20 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.00019/0.1235, allocations: 8 kB / 430.7 MB, free: 12 kB / 350.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.0006196/0.1241, allocations: 0.662 MB / 431.3 MB, free: 15.32 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001351/0.1242, allocations: 35.98 kB / 431.4 MB, free: 15.29 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.587e-06/0.1242, allocations: 4 kB / 431.4 MB, free: 15.29 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 5.61e-07/0.1242, allocations: 0 / 431.4 MB, free: 15.29 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007552/0.125, allocations: 0.7104 MB / 432.1 MB, free: 14.55 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001367/0.1263, allocations: 1.226 MB / 433.3 MB, free: 13.22 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003544/0.1267, allocations: 0.6885 MB / 434 MB, free: 12.5 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 3.077e-05/0.1267, allocations: 4 kB / 434 MB, free: 12.5 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.622e-05/0.1268, allocations: 15.44 kB / 434 MB, free: 12.48 MB / 366.1 MB Notification: Performance of SimCode: time 2.91e-07/0.1268, allocations: 0 / 434 MB, free: 12.48 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02629/0.1531, allocations: 1.686 MB / 435.7 MB, free: 10.94 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.774/7.927, allocations: 15.62 kB / 435.7 MB, free: 10.93 MB / 366.1 MB " [Timeout remaining time 652] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.sim & python3 -m fmpy simulate --output-file Modelica_4.1.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.000199561 Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_TickBasedPulse.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_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_4.1.0_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_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse_res.csv. Warning: Get data of variable assignClock1.y from file Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 10.75793176901061]