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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001917/0.001917, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002428/0.002428, allocations: 210.4 kB / 18.58 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.569/1.569, allocations: 227.7 MB / 247.1 MB, free: 10.35 MB / 206.1 MB 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.002128/0.002128, allocations: 65.38 kB / 307.3 MB, free: 420 kB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1128/0.1149, allocations: 50.54 MB / 357.9 MB, free: 13.86 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.003388/0.1184, allocations: 1.593 MB / 359.5 MB, free: 12.25 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001084/0.1195, allocations: 0.557 MB / 360 MB, free: 11.69 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.107e-05/0.1196, allocations: 0 / 360 MB, free: 11.69 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 4.311e-05/0.1196, allocations: 7.875 kB / 360 MB, free: 11.68 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001235/0.1198, allocations: 11.92 kB / 360 MB, free: 11.67 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003484/0.1201, allocations: 67.75 kB / 360.1 MB, free: 11.61 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001073/0.1203, allocations: 51.84 kB / 360.2 MB, free: 11.55 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.656e-05/0.1204, allocations: 19.97 kB / 360.2 MB, free: 11.54 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001217/0.1205, allocations: 31.8 kB / 360.2 MB, free: 11.5 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.475e-05/0.1206, allocations: 23.84 kB / 360.2 MB, free: 11.48 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.897e-05/0.1206, allocations: 4 kB / 360.2 MB, free: 11.48 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.059e-05/0.1206, allocations: 15.98 kB / 360.3 MB, free: 11.46 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.508e-05/0.1207, allocations: 15.94 kB / 360.3 MB, free: 11.45 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.7e-05/0.1208, allocations: 31.8 kB / 360.3 MB, free: 11.41 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001391/0.1209, allocations: 63.73 kB / 360.4 MB, free: 11.35 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.586e-06/0.1209, allocations: 0 / 360.4 MB, free: 11.35 MB / 302.1 MB Notification: Performance of FrontEnd: time 9.92e-07/0.1209, allocations: 0 / 360.4 MB, free: 11.35 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.648e-06/0.1209, allocations: 0 / 360.4 MB, free: 11.35 MB / 302.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.0005336/0.1215, allocations: 383.3 kB / 360.7 MB, free: 10.93 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.668e-05/0.1215, allocations: 8.031 kB / 360.7 MB, free: 10.92 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.323e-05/0.1216, allocations: 42.75 kB / 360.8 MB, free: 10.87 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001546/0.1217, allocations: 20.83 kB / 360.8 MB, free: 10.85 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002965/0.1221, allocations: 204 kB / 361 MB, free: 10.61 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.398e-05/0.1221, allocations: 4.375 kB / 361 MB, free: 10.61 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.497e-05/0.1221, allocations: 4.375 kB / 361 MB, free: 10.61 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002997/0.1224, allocations: 134 kB / 361.1 MB, free: 10.45 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.041e-05/0.1224, allocations: 0 / 361.1 MB, free: 10.45 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.142e-05/0.1224, allocations: 4 kB / 361.2 MB, free: 10.45 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.105e-06/0.1225, allocations: 4 kB / 361.2 MB, free: 10.45 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.222e-05/0.1226, allocations: 27.86 kB / 361.2 MB, free: 10.42 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003645/0.1229, allocations: 282.6 kB / 361.5 MB, free: 10.09 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000233/0.1232, allocations: 156.9 kB / 361.6 MB, free: 9.887 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.283e-05/0.1233, allocations: 42.56 kB / 361.7 MB, free: 9.836 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.954e-05/0.1233, allocations: 4 kB / 361.7 MB, free: 9.832 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.727e-05/0.1233, allocations: 34.56 kB / 361.7 MB, free: 9.789 MB / 302.1 MB Notification: Performance of pre-optimization done (n=6): time 1.102e-06/0.1233, allocations: 0 / 361.7 MB, free: 9.789 MB / 302.1 MB Notification: Performance of matching and sorting (n=6): time 0.0002938/0.1236, allocations: 93.5 kB / 361.8 MB, free: 9.691 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.228e-05/0.1237, allocations: 118.7 kB / 361.9 MB, free: 9.551 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000136/0.1239, allocations: 145.3 kB / 362 MB, free: 9.402 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.58e-05/0.1239, allocations: 25.7 kB / 362.1 MB, free: 9.371 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.909e-05/0.124, allocations: 92.14 kB / 362.2 MB, free: 9.277 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.092e-05/0.124, allocations: 7.891 kB / 362.2 MB, free: 9.27 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.253e-05/0.124, allocations: 21.72 kB / 362.2 MB, free: 9.242 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001428/0.1242, allocations: 322.8 kB / 362.5 MB, free: 8.918 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.511e-05/0.1242, allocations: 12 kB / 362.5 MB, free: 8.906 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.759e-05/0.1243, allocations: 56.25 kB / 362.6 MB, free: 8.836 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001293/0.1245, allocations: 60.22 kB / 362.6 MB, free: 8.762 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.1245, allocations: 0 / 362.6 MB, free: 8.762 MB / 302.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001792/0.1247, allocations: 97.61 kB / 362.7 MB, free: 8.66 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.43e-05/0.1247, allocations: 4 kB / 362.7 MB, free: 8.656 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.716e-06/0.1247, allocations: 4 kB / 362.7 MB, free: 8.652 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.285e-05/0.1247, allocations: 0 / 362.7 MB, free: 8.652 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.395e-05/0.1248, allocations: 12 kB / 362.7 MB, free: 8.641 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.12e-06/0.1248, allocations: 0 / 362.7 MB, free: 8.641 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.914e-05/0.1249, allocations: 11.97 kB / 362.8 MB, free: 8.629 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.011e-05/0.1249, allocations: 4.125 kB / 362.8 MB, free: 8.625 MB / 302.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 0.0001021/0.125, allocations: 129.7 kB / 362.9 MB, free: 8.488 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.802e-05/0.1251, allocations: 53.59 kB / 362.9 MB, free: 8.43 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.859e-05/0.1251, allocations: 16.23 kB / 362.9 MB, free: 8.406 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.954e-06/0.1251, allocations: 0 / 362.9 MB, free: 8.406 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.967e-06/0.1251, allocations: 4 kB / 363 MB, free: 8.402 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.815e-06/0.1252, allocations: 0 / 363 MB, free: 8.402 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002072/0.1254, allocations: 177.5 kB / 363.1 MB, free: 8.18 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.1254, allocations: 0 / 363.1 MB, free: 8.18 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.342e-05/0.1254, allocations: 11.98 kB / 363.1 MB, free: 8.168 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.555e-06/0.1255, allocations: 11.88 kB / 363.1 MB, free: 8.156 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.028e-05/0.1255, allocations: 4 kB / 363.2 MB, free: 8.152 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.606e-06/0.1255, allocations: 4 kB / 363.2 MB, free: 8.148 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.11e-07/0.1255, allocations: 0 / 363.2 MB, free: 8.148 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002489/0.1257, allocations: 189.1 kB / 363.3 MB, free: 7.941 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.129e-05/0.1258, allocations: 96.98 kB / 363.4 MB, free: 7.828 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.114e-05/0.1259, allocations: 8 kB / 363.4 MB, free: 7.82 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.852e-05/0.1259, allocations: 0 / 363.4 MB, free: 7.82 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.037e-05/0.126, allocations: 4 kB / 363.4 MB, free: 7.816 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.829e-06/0.126, allocations: 0 / 363.4 MB, free: 7.816 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001049/0.1261, allocations: 115.2 kB / 363.6 MB, free: 7.703 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.1261, allocations: 0 / 363.6 MB, free: 7.703 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002363/0.1263, allocations: 8 kB / 363.6 MB, free: 7.695 MB / 302.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.0006223/0.127, allocations: 0.7414 MB / 364.3 MB, free: 6.922 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001709/0.1271, allocations: 56.09 kB / 364.4 MB, free: 6.867 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.1272, allocations: 4.062 kB / 364.4 MB, free: 6.863 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.449e-05/0.1272, allocations: 11.98 kB / 364.4 MB, free: 6.852 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003843/0.1276, allocations: 27.97 kB / 364.4 MB, free: 6.824 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001566/0.1292, allocations: 1.447 MB / 365.9 MB, free: 5.262 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003305/0.1295, allocations: 0.7002 MB / 366.6 MB, free: 4.535 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.318e-05/0.1296, allocations: 4.281 kB / 366.6 MB, free: 4.531 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.84e-05/0.1296, allocations: 19.42 kB / 366.6 MB, free: 4.512 MB / 302.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1296, allocations: 3.938 kB / 366.6 MB, free: 4.508 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02292/0.1525, allocations: 1.777 MB / 368.4 MB, free: 2.891 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.479/8.632, allocations: 10.5 kB / 368.4 MB, free: 2.883 MB / 302.1 MB (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 3.6e-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)