Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.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.001828/0.001828, allocations: 122.6 kB / 18.5 MB, free: 4.578 MB / 14.72 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.00204/0.00204, allocations: 206.6 kB / 21.45 MB, free: 1.629 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.441/1.441, allocations: 230.5 MB / 254.8 MB, free: 15.21 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-beta.om/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.RealSignals.AssignClockToSquareWaveHold,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToSquareWaveHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToSquareWaveHold",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001932/0.001932, allocations: 75.81 kB / 373.7 MB, free: 10.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1046/0.1065, allocations: 53.31 MB / 427 MB, free: 4.797 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.00305/0.1096, allocations: 1.617 MB / 428.6 MB, free: 3.172 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001121/0.1107, allocations: 0.5571 MB / 429.2 MB, free: 2.609 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.481e-05/0.1108, allocations: 3.938 kB / 429.2 MB, free: 2.605 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 5.041e-05/0.1109, allocations: 11.88 kB / 429.2 MB, free: 2.594 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001541/0.111, allocations: 15.86 kB / 429.2 MB, free: 2.578 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003571/0.1114, allocations: 63.8 kB / 429.3 MB, free: 2.516 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001284/0.1115, allocations: 47.8 kB / 429.3 MB, free: 2.469 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001095/0.1116, allocations: 11.98 kB / 429.3 MB, free: 2.457 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001369/0.1117, allocations: 31.91 kB / 429.4 MB, free: 2.426 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.078e-05/0.1118, allocations: 23.86 kB / 429.4 MB, free: 2.402 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.705e-05/0.1118, allocations: 4 kB / 429.4 MB, free: 2.398 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.414e-05/0.1119, allocations: 4 kB / 429.4 MB, free: 2.395 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.812e-05/0.1119, allocations: 27.86 kB / 429.4 MB, free: 2.367 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.539e-05/0.112, allocations: 31.75 kB / 429.5 MB, free: 2.336 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001746/0.1122, allocations: 63.7 kB / 429.5 MB, free: 2.273 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.1122, allocations: 0 / 429.5 MB, free: 2.273 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.1122, allocations: 0 / 429.5 MB, free: 2.273 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.548e-06/0.1122, allocations: 4 kB / 429.5 MB, free: 2.27 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0006061/0.1128, allocations: 391 kB / 429.9 MB, free: 1.84 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.546e-05/0.1128, allocations: 8.031 kB / 429.9 MB, free: 1.832 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.495e-05/0.1129, allocations: 34.75 kB / 429.9 MB, free: 1.789 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001717/0.113, allocations: 24.88 kB / 430 MB, free: 1.766 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003141/0.1134, allocations: 202.7 kB / 430.2 MB, free: 1.531 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.434e-05/0.1134, allocations: 4.375 kB / 430.2 MB, free: 1.527 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.657e-05/0.1134, allocations: 4.375 kB / 430.2 MB, free: 1.523 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003546/0.1137, allocations: 134 kB / 430.3 MB, free: 1.371 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.938e-06/0.1138, allocations: 0 / 430.3 MB, free: 1.371 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.475e-05/0.1138, allocations: 8 kB / 430.3 MB, free: 1.363 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.606e-06/0.1138, allocations: 0 / 430.3 MB, free: 1.363 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.31e-05/0.1139, allocations: 23.92 kB / 430.3 MB, free: 1.34 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004147/0.1143, allocations: 286.6 kB / 430.6 MB, free: 1.004 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002607/0.1145, allocations: 152.8 kB / 430.8 MB, free: 0.8086 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.558e-05/0.1146, allocations: 34.69 kB / 430.8 MB, free: 0.7656 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.851e-05/0.1147, allocations: 15.98 kB / 430.8 MB, free: 0.75 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.66e-05/0.1147, allocations: 34.5 kB / 430.9 MB, free: 0.707 MB / 350.1 MB Notification: Performance of pre-optimization done (n=6): time 1.212e-06/0.1147, allocations: 3.938 kB / 430.9 MB, free: 0.7031 MB / 350.1 MB Notification: Performance of matching and sorting (n=6): time 0.0003135/0.115, allocations: 93.55 kB / 430.9 MB, free: 0.6055 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001039/0.1151, allocations: 111.2 kB / 431.1 MB, free: 484 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001606/0.1153, allocations: 145.8 kB / 431.2 MB, free: 328 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.78e-05/0.1153, allocations: 25.7 kB / 431.2 MB, free: 296 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.554e-05/0.1154, allocations: 84.14 kB / 431.3 MB, free: 208 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.721e-05/0.1154, allocations: 19.88 kB / 431.3 MB, free: 188 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.104e-05/0.1154, allocations: 17.72 kB / 431.3 MB, free: 164 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001868/0.1156, allocations: 322.8 kB / 431.7 MB, free: 15.84 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.222e-05/0.1157, allocations: 19.88 kB / 431.7 MB, free: 15.82 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.172e-05/0.1158, allocations: 44.28 kB / 431.7 MB, free: 15.76 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001283/0.1159, allocations: 72.2 kB / 431.8 MB, free: 15.67 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-06/0.1159, allocations: 0 / 431.8 MB, free: 15.67 MB / 366.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001821/0.1161, allocations: 89.48 kB / 431.9 MB, free: 15.58 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.621e-05/0.1161, allocations: 8 kB / 431.9 MB, free: 15.57 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.481e-06/0.1161, allocations: 0 / 431.9 MB, free: 15.57 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.582e-05/0.1161, allocations: 4 kB / 431.9 MB, free: 15.57 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.999e-05/0.1162, allocations: 8 kB / 431.9 MB, free: 15.56 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.703e-06/0.1162, allocations: 0 / 431.9 MB, free: 15.56 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.648e-05/0.1162, allocations: 16.06 kB / 431.9 MB, free: 15.54 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.124e-05/0.1162, allocations: 4 kB / 431.9 MB, free: 15.54 MB / 366.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: 3 (clockToSquareWave.y,$CLKPRE.clockToSquareWave.y2,clockToSquareWave.y2) * Number of discrete states: 0 () * Number of clocked states: 1 (clockToSquareWave.y2) * 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.993e-05/0.1163, allocations: 121.8 kB / 432 MB, free: 15.41 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.754e-05/0.1164, allocations: 57.58 kB / 432.1 MB, free: 15.35 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.973e-05/0.1165, allocations: 12.25 kB / 432.1 MB, free: 15.32 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.903e-06/0.1165, allocations: 0 / 432.1 MB, free: 15.32 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.361e-06/0.1165, allocations: 3.984 kB / 432.1 MB, free: 15.32 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.196e-06/0.1165, allocations: 0 / 432.1 MB, free: 15.32 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002068/0.1167, allocations: 177.6 kB / 432.3 MB, free: 15.1 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.1167, allocations: 4 kB / 432.3 MB, free: 15.09 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.67e-05/0.1168, allocations: 15.98 kB / 432.3 MB, free: 15.08 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.854e-06/0.1168, allocations: 0 / 432.3 MB, free: 15.08 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.584e-06/0.1168, allocations: 0 / 432.3 MB, free: 15.08 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.288e-06/0.1168, allocations: 4 kB / 432.3 MB, free: 15.07 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.1168, allocations: 0 / 432.3 MB, free: 15.07 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002276/0.117, allocations: 189.1 kB / 432.5 MB, free: 14.87 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.045e-05/0.1171, allocations: 101 kB / 432.6 MB, free: 14.75 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.166e-05/0.1171, allocations: 7.922 kB / 432.6 MB, free: 14.74 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.354e-05/0.1172, allocations: 8 kB / 432.6 MB, free: 14.73 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.941e-05/0.1172, allocations: 0 / 432.6 MB, free: 14.73 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.084e-06/0.1172, allocations: 4 kB / 432.6 MB, free: 14.73 MB / 366.1 MB Notification: Performance of sorting global known variables: time 9.134e-05/0.1173, allocations: 108.3 kB / 432.7 MB, free: 14.62 MB / 366.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.1173, allocations: 0 / 432.7 MB, free: 14.62 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002301/0.1175, allocations: 8 kB / 432.7 MB, free: 14.62 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 2 (clockToSquareWave.y,clockToSquareWave.y2) * Number of discrete states: 0 () * Number of clocked states: 1 (clockToSquareWave.y2) * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 6 * 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 Backend phase and start with SimCode phase: time 0.0006799/0.1182, allocations: 0.7574 MB / 433.5 MB, free: 13.83 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001706/0.1184, allocations: 48.03 kB / 433.5 MB, free: 13.78 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.1184, allocations: 7.938 kB / 433.5 MB, free: 13.77 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 4.33e-05/0.1184, allocations: 7.938 kB / 433.5 MB, free: 13.77 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003741/0.1188, allocations: 36.27 kB / 433.6 MB, free: 13.73 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001643/0.1204, allocations: 1.462 MB / 435 MB, free: 12.15 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003755/0.1208, allocations: 0.6963 MB / 435.7 MB, free: 11.43 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 3.934e-05/0.1209, allocations: 11.77 kB / 435.7 MB, free: 11.42 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.178e-05/0.1209, allocations: 15.44 kB / 435.8 MB, free: 11.4 MB / 366.1 MB Notification: Performance of SimCode: time 3.31e-07/0.1209, allocations: 0 / 435.8 MB, free: 11.4 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0263/0.1472, allocations: 1.819 MB / 437.6 MB, free: 9.766 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.858/8.006, allocations: 17.42 kB / 437.6 MB, free: 9.754 MB / 366.1 MB " [Timeout remaining time 652] (rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold_res.csv --start-time 0 --stop-time 0.09 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1.79641e-05 Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToSquareWaveHold.fmu > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 10.6643012072891] Failed to read output from testmodel.py, exit status != 0: ['time', 'sample1.y', 'clockToSquareWave.y'] 8.072405489627272 8.249139599 8.134211562 Calling exit ...