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.001593/0.001593, allocations: 104.4 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001848/0.001848, allocations: 214.4 kB / 18.59 MB, free: 4.402 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.502/1.502, allocations: 227.7 MB / 247 MB, free: 10.29 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.00199/0.00199, allocations: 68.62 kB / 307.3 MB, free: 368 kB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1121/0.1141, allocations: 50.53 MB / 357.9 MB, free: 13.81 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.003219/0.1174, allocations: 1.598 MB / 359.5 MB, free: 12.2 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001096/0.1185, allocations: 0.5532 MB / 360 MB, free: 11.64 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.931e-05/0.1186, allocations: 4 kB / 360 MB, free: 11.64 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 4.67e-05/0.1187, allocations: 7.875 kB / 360 MB, free: 11.63 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001374/0.1188, allocations: 19.84 kB / 360.1 MB, free: 11.61 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003736/0.1192, allocations: 55.83 kB / 360.1 MB, free: 11.55 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001173/0.1194, allocations: 47.84 kB / 360.2 MB, free: 11.51 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001222/0.1195, allocations: 23.97 kB / 360.2 MB, free: 11.48 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001262/0.1196, allocations: 31.86 kB / 360.2 MB, free: 11.45 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.889e-05/0.1197, allocations: 23.8 kB / 360.2 MB, free: 11.43 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.861e-05/0.1197, allocations: 7.938 kB / 360.2 MB, free: 11.42 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.076e-05/0.1198, allocations: 8 kB / 360.2 MB, free: 11.41 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.76e-05/0.1198, allocations: 15.97 kB / 360.3 MB, free: 11.4 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.852e-05/0.1199, allocations: 35.73 kB / 360.3 MB, free: 11.36 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001531/0.1201, allocations: 55.8 kB / 360.4 MB, free: 11.31 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.022e-05/0.1201, allocations: 4 kB / 360.4 MB, free: 11.3 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.492e-06/0.1201, allocations: 3.938 kB / 360.4 MB, free: 11.3 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.25e-06/0.1201, allocations: 4 kB / 360.4 MB, free: 11.3 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.0005977/0.1207, allocations: 389.7 kB / 360.7 MB, free: 10.87 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.924e-05/0.1208, allocations: 8.031 kB / 360.8 MB, free: 10.86 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.626e-05/0.1208, allocations: 38.75 kB / 360.8 MB, free: 10.82 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001767/0.121, allocations: 16.83 kB / 360.8 MB, free: 10.8 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002503/0.1213, allocations: 196.1 kB / 361 MB, free: 10.57 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.265e-05/0.1213, allocations: 384 / 361 MB, free: 10.57 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.187e-05/0.1213, allocations: 8.312 kB / 361 MB, free: 10.56 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003308/0.1216, allocations: 146 kB / 361.2 MB, free: 10.4 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.201e-05/0.1217, allocations: 0 / 361.2 MB, free: 10.4 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.042e-05/0.1217, allocations: 0 / 361.2 MB, free: 10.4 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.058e-06/0.1217, allocations: 0 / 361.2 MB, free: 10.4 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.341e-05/0.1218, allocations: 31.92 kB / 361.2 MB, free: 10.37 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003978/0.1222, allocations: 286.6 kB / 361.5 MB, free: 10.03 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002448/0.1224, allocations: 160.8 kB / 361.6 MB, free: 9.828 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.541e-05/0.1225, allocations: 42.69 kB / 361.7 MB, free: 9.777 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.103e-05/0.1226, allocations: 0 / 361.7 MB, free: 9.777 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.61e-05/0.1226, allocations: 34.5 kB / 361.7 MB, free: 9.734 MB / 302.1 MB Notification: Performance of pre-optimization done (n=6): time 9.82e-07/0.1226, allocations: 0 / 361.7 MB, free: 9.734 MB / 302.1 MB Notification: Performance of matching and sorting (n=6): time 0.0003063/0.1229, allocations: 101.5 kB / 361.8 MB, free: 9.629 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.595e-05/0.123, allocations: 106.7 kB / 361.9 MB, free: 9.5 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001428/0.1232, allocations: 148.4 kB / 362 MB, free: 9.348 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.677e-05/0.1232, allocations: 25.7 kB / 362.1 MB, free: 9.316 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.301e-05/0.1233, allocations: 88.14 kB / 362.2 MB, free: 9.227 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.24e-05/0.1233, allocations: 11.89 kB / 362.2 MB, free: 9.215 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.465e-05/0.1234, allocations: 25.97 kB / 362.2 MB, free: 9.184 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001436/0.1235, allocations: 322.8 kB / 362.5 MB, free: 8.859 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.151e-05/0.1236, allocations: 8 kB / 362.5 MB, free: 8.852 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.759e-05/0.1236, allocations: 48.22 kB / 362.6 MB, free: 8.789 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001224/0.1238, allocations: 64.22 kB / 362.6 MB, free: 8.711 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.887e-06/0.1238, allocations: 4 kB / 362.6 MB, free: 8.707 MB / 302.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001704/0.124, allocations: 85.5 kB / 362.7 MB, free: 8.617 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.055e-05/0.124, allocations: 4 kB / 362.7 MB, free: 8.613 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.422e-06/0.124, allocations: 4.062 kB / 362.7 MB, free: 8.609 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.939e-05/0.124, allocations: 11.94 kB / 362.7 MB, free: 8.598 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.488e-05/0.1241, allocations: 12 kB / 362.7 MB, free: 8.586 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.793e-06/0.1241, allocations: 0 / 362.7 MB, free: 8.586 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.035e-05/0.1242, allocations: 11.98 kB / 362.8 MB, free: 8.574 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.799e-06/0.1242, allocations: 4 kB / 362.8 MB, free: 8.57 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.0001045/0.1243, allocations: 117.8 kB / 362.9 MB, free: 8.445 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.464e-05/0.1244, allocations: 57.53 kB / 362.9 MB, free: 8.383 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.279e-05/0.1244, allocations: 12.25 kB / 362.9 MB, free: 8.363 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.735e-06/0.1245, allocations: 4 kB / 362.9 MB, free: 8.359 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.468e-06/0.1245, allocations: 0 / 362.9 MB, free: 8.359 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.869e-06/0.1245, allocations: 7.984 kB / 363 MB, free: 8.352 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002082/0.1247, allocations: 181.5 kB / 363.1 MB, free: 8.125 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.343e-06/0.1247, allocations: 288 / 363.1 MB, free: 8.125 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.901e-05/0.1248, allocations: 11.98 kB / 363.1 MB, free: 8.113 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.694e-06/0.1248, allocations: 0 / 363.1 MB, free: 8.113 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.333e-05/0.1248, allocations: 4 kB / 363.1 MB, free: 8.109 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.433e-06/0.1248, allocations: 3.938 kB / 363.1 MB, free: 8.105 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.243e-06/0.1248, allocations: 0 / 363.1 MB, free: 8.105 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002446/0.1251, allocations: 197 kB / 363.3 MB, free: 7.891 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.942e-05/0.1251, allocations: 93 kB / 363.4 MB, free: 7.781 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.149e-05/0.1252, allocations: 3.984 kB / 363.4 MB, free: 7.777 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.251e-05/0.1252, allocations: 8 kB / 363.4 MB, free: 7.77 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.37e-05/0.1253, allocations: 0 / 363.4 MB, free: 7.77 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.181e-06/0.1253, allocations: 8 kB / 363.5 MB, free: 7.762 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.676e-05/0.1254, allocations: 107.2 kB / 363.6 MB, free: 7.656 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1254, allocations: 0 / 363.6 MB, free: 7.656 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002354/0.1256, allocations: 8 kB / 363.6 MB, free: 7.648 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.0006203/0.1263, allocations: 0.7452 MB / 364.3 MB, free: 6.871 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001726/0.1264, allocations: 51.91 kB / 364.4 MB, free: 6.82 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.1265, allocations: 0 / 364.4 MB, free: 6.82 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.895e-05/0.1265, allocations: 15.94 kB / 364.4 MB, free: 6.805 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004187/0.1269, allocations: 28.14 kB / 364.4 MB, free: 6.777 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001553/0.1285, allocations: 1.459 MB / 365.9 MB, free: 5.203 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003411/0.1289, allocations: 0.7002 MB / 366.6 MB, free: 4.477 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.87e-05/0.1289, allocations: 4 kB / 366.6 MB, free: 4.473 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.973e-05/0.129, allocations: 26.23 kB / 366.6 MB, free: 4.449 MB / 302.1 MB Notification: Performance of SimCode: time 4.51e-07/0.129, allocations: 0 / 366.6 MB, free: 4.449 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1619/0.2909, allocations: 1.759 MB / 368.4 MB, free: 2.848 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.985/8.276, allocations: 18.44 kB / 368.4 MB, free: 2.832 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToSquareWaveHold_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 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)