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.00204/0.00204, allocations: 118.6 kB / 18.5 MB, free: 4.566 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.002517/0.002517, allocations: 214.6 kB / 21.46 MB, free: 1.605 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.506/1.506, allocations: 230.5 MB / 254.7 MB, free: 15 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.001942/0.001942, allocations: 67.89 kB / 373.6 MB, free: 10.24 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1171/0.119, allocations: 53.31 MB / 426.9 MB, free: 4.84 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.003025/0.122, allocations: 1.614 MB / 428.5 MB, free: 3.219 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001126/0.1232, allocations: 0.5649 MB / 429.1 MB, free: 2.648 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.756e-05/0.1233, allocations: 3.938 kB / 429.1 MB, free: 2.645 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 5.091e-05/0.1233, allocations: 7.875 kB / 429.1 MB, free: 2.637 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001456/0.1234, allocations: 15.92 kB / 429.1 MB, free: 2.621 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003527/0.1238, allocations: 63.75 kB / 429.2 MB, free: 2.559 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001346/0.1239, allocations: 47.84 kB / 429.2 MB, free: 2.512 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001046/0.124, allocations: 11.98 kB / 429.2 MB, free: 2.5 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001278/0.1242, allocations: 35.84 kB / 429.2 MB, free: 2.465 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.041e-05/0.1242, allocations: 23.86 kB / 429.3 MB, free: 2.441 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.73e-05/0.1243, allocations: 4 kB / 429.3 MB, free: 2.438 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.057e-05/0.1243, allocations: 8 kB / 429.3 MB, free: 2.43 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.32e-05/0.1243, allocations: 15.92 kB / 429.3 MB, free: 2.414 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.909e-05/0.1244, allocations: 27.81 kB / 429.3 MB, free: 2.387 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001718/0.1246, allocations: 67.66 kB / 429.4 MB, free: 2.32 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.478e-06/0.1246, allocations: 0 / 429.4 MB, free: 2.32 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.154e-06/0.1246, allocations: 0 / 429.4 MB, free: 2.32 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.422e-06/0.1246, allocations: 0 / 429.4 MB, free: 2.32 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.0006419/0.1252, allocations: 398.9 kB / 429.8 MB, free: 1.883 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.059e-05/0.1253, allocations: 12.03 kB / 429.8 MB, free: 1.871 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.494e-05/0.1253, allocations: 34.75 kB / 429.8 MB, free: 1.828 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001673/0.1255, allocations: 24.88 kB / 429.9 MB, free: 1.805 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002927/0.1258, allocations: 194.8 kB / 430 MB, free: 1.578 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.36e-05/0.1258, allocations: 8.375 kB / 430.1 MB, free: 1.57 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.515e-05/0.1258, allocations: 384 / 430.1 MB, free: 1.57 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003181/0.1261, allocations: 141.9 kB / 430.2 MB, free: 1.41 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.043e-05/0.1261, allocations: 0 / 430.2 MB, free: 1.41 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.857e-06/0.1261, allocations: 0 / 430.2 MB, free: 1.41 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.956e-06/0.1261, allocations: 4 kB / 430.2 MB, free: 1.406 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.014e-05/0.1262, allocations: 19.98 kB / 430.2 MB, free: 1.387 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004443/0.1267, allocations: 290.5 kB / 430.5 MB, free: 1.047 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002548/0.1269, allocations: 152.8 kB / 430.6 MB, free: 0.8516 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.96e-05/0.127, allocations: 42.67 kB / 430.7 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.922e-05/0.127, allocations: 0 / 430.7 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.845e-05/0.1271, allocations: 42.56 kB / 430.7 MB, free: 0.75 MB / 350.1 MB Notification: Performance of pre-optimization done (n=6): time 8.71e-07/0.1271, allocations: 0 / 430.7 MB, free: 0.75 MB / 350.1 MB Notification: Performance of matching and sorting (n=6): time 0.0003056/0.1274, allocations: 97.48 kB / 430.8 MB, free: 0.6484 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.038e-05/0.1274, allocations: 115 kB / 430.9 MB, free: 0.5117 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001384/0.1276, allocations: 137.8 kB / 431.1 MB, free: 376 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.233e-05/0.1276, allocations: 33.7 kB / 431.1 MB, free: 336 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.924e-05/0.1277, allocations: 84.14 kB / 431.2 MB, free: 248 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.231e-05/0.1277, allocations: 15.88 kB / 431.2 MB, free: 232 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.139e-05/0.1277, allocations: 21.7 kB / 431.2 MB, free: 204 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001592/0.1279, allocations: 326.7 kB / 431.5 MB, free: 15.87 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.136e-05/0.1279, allocations: 19.98 kB / 431.6 MB, free: 15.85 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.336e-05/0.128, allocations: 40.28 kB / 431.6 MB, free: 15.8 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001102/0.1281, allocations: 64.22 kB / 431.7 MB, free: 15.72 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.1281, allocations: 3.938 kB / 431.7 MB, free: 15.71 MB / 366.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001662/0.1283, allocations: 85.56 kB / 431.8 MB, free: 15.62 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.782e-05/0.1283, allocations: 11.98 kB / 431.8 MB, free: 15.61 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.168e-06/0.1283, allocations: 0 / 431.8 MB, free: 15.61 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.367e-05/0.1283, allocations: 0 / 431.8 MB, free: 15.61 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.076e-05/0.1284, allocations: 11.94 kB / 431.8 MB, free: 15.6 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.574e-06/0.1284, allocations: 8.125 kB / 431.8 MB, free: 15.59 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.203e-05/0.1284, allocations: 11.94 kB / 431.8 MB, free: 15.58 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.434e-06/0.1284, allocations: 0 / 431.8 MB, free: 15.58 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 0.000187/0.1286, allocations: 125.8 kB / 431.9 MB, free: 15.45 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.284e-05/0.1287, allocations: 53.64 kB / 432 MB, free: 15.39 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.935e-05/0.1288, allocations: 8.25 kB / 432 MB, free: 15.37 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.018e-06/0.1288, allocations: 4 kB / 432 MB, free: 15.37 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.867e-06/0.1288, allocations: 3.938 kB / 432 MB, free: 15.36 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.599e-06/0.1288, allocations: 3.984 kB / 432 MB, free: 15.36 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002073/0.129, allocations: 177.6 kB / 432.2 MB, free: 15.14 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.166e-06/0.129, allocations: 4 kB / 432.2 MB, free: 15.13 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.349e-05/0.129, allocations: 7.984 kB / 432.2 MB, free: 15.12 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.358e-06/0.129, allocations: 4 kB / 432.2 MB, free: 15.12 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.288e-06/0.129, allocations: 4 kB / 432.2 MB, free: 15.12 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.532e-06/0.129, allocations: 0 / 432.2 MB, free: 15.12 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.875e-06/0.1291, allocations: 4 kB / 432.2 MB, free: 15.11 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002301/0.1293, allocations: 189.1 kB / 432.4 MB, free: 14.91 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.949e-05/0.1294, allocations: 93.33 kB / 432.5 MB, free: 14.8 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.37e-05/0.1294, allocations: 7.984 kB / 432.5 MB, free: 14.79 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.919e-05/0.1295, allocations: 0 / 432.5 MB, free: 14.79 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.687e-05/0.1295, allocations: 11.98 kB / 432.5 MB, free: 14.78 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.181e-06/0.1295, allocations: 4 kB / 432.5 MB, free: 14.77 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001118/0.1296, allocations: 116.6 kB / 432.6 MB, free: 14.66 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1296, allocations: 0 / 432.6 MB, free: 14.66 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002993/0.1299, allocations: 12 kB / 432.6 MB, free: 14.65 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.0006838/0.1306, allocations: 0.753 MB / 433.4 MB, free: 13.86 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001712/0.1308, allocations: 51.91 kB / 433.4 MB, free: 13.81 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.1308, allocations: 0 / 433.4 MB, free: 13.81 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 5.003e-05/0.1308, allocations: 8 kB / 433.4 MB, free: 13.8 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003824/0.1312, allocations: 35.94 kB / 433.5 MB, free: 13.77 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001672/0.1329, allocations: 1.456 MB / 434.9 MB, free: 12.2 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003803/0.1333, allocations: 0.6963 MB / 435.6 MB, free: 11.48 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 4.131e-05/0.1333, allocations: 7.766 kB / 435.6 MB, free: 11.47 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.3e-05/0.1334, allocations: 15.44 kB / 435.6 MB, free: 11.45 MB / 366.1 MB Notification: Performance of SimCode: time 3.01e-07/0.1334, allocations: 0 / 435.6 MB, free: 11.45 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02617/0.1595, allocations: 1.835 MB / 437.5 MB, free: 9.797 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.992/8.152, allocations: 7.094 kB / 437.5 MB, free: 9.793 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 & /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 --stepSize=1.79641e-05 --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) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 10.72133316937834] Failed to read output from testmodel.py, exit status != 0: ['time', 'sample1.y', 'clockToSquareWave.y'] 8.223521009087563 8.419920975 8.292617948 Calling exit ...