Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_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 trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToSquareWaveHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold,fileNamePrefix="Modelica_trunk_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.001109/0.001109, allocations: 96.67 kB / 17 MB, free: 6.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001469/0.001469, allocations: 193.9 kB / 17.9 MB, free: 5.91 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.507/1.507, allocations: 227.3 MB / 246 MB, free: 12.02 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002925/0.0002927, allocations: 8 kB / 306.8 MB, free: 1.496 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1385/0.1388, allocations: 51.49 MB / 358.3 MB, free: 14 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.002353/0.1412, allocations: 1.301 MB / 359.6 MB, free: 12.7 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.000964/0.1422, allocations: 0.5107 MB / 360.1 MB, free: 12.18 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.928e-05/0.1423, allocations: 4 kB / 360.1 MB, free: 12.18 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 3.698e-05/0.1423, allocations: 3.984 kB / 360.1 MB, free: 12.17 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001555/0.1425, allocations: 3.938 kB / 360.1 MB, free: 12.17 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003632/0.1429, allocations: 55.83 kB / 360.2 MB, free: 12.11 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001049/0.143, allocations: 43.84 kB / 360.2 MB, free: 12.07 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001091/0.1431, allocations: 16.16 kB / 360.2 MB, free: 12.05 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001382/0.1433, allocations: 27.92 kB / 360.3 MB, free: 12.03 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.64e-05/0.1433, allocations: 23.86 kB / 360.3 MB, free: 12 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.785e-05/0.1434, allocations: 4 kB / 360.3 MB, free: 12 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.847e-05/0.1434, allocations: 7.984 kB / 360.3 MB, free: 11.99 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.991e-05/0.1435, allocations: 11.94 kB / 360.3 MB, free: 11.98 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 3.912e-05/0.1435, allocations: 33.7 kB / 360.4 MB, free: 11.94 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001266/0.1436, allocations: 43.91 kB / 360.4 MB, free: 11.9 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.243e-06/0.1437, allocations: 0 / 360.4 MB, free: 11.9 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.925e-06/0.1437, allocations: 3.938 kB / 360.4 MB, free: 11.89 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.639e-06/0.1437, allocations: 0 / 360.4 MB, free: 11.89 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.0005289/0.1442, allocations: 383.1 kB / 360.8 MB, free: 11.47 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.889e-05/0.1443, allocations: 12.03 kB / 360.8 MB, free: 11.46 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.299e-05/0.1443, allocations: 34.56 kB / 360.8 MB, free: 11.42 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001362/0.1445, allocations: 19.89 kB / 360.8 MB, free: 11.4 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002216/0.1447, allocations: 190.9 kB / 361 MB, free: 11.17 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.027e-06/0.1447, allocations: 0 / 361 MB, free: 11.17 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.132e-05/0.1447, allocations: 4 kB / 361 MB, free: 11.17 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003015/0.145, allocations: 137.8 kB / 361.2 MB, free: 11.01 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.648e-06/0.1451, allocations: 3.938 kB / 361.2 MB, free: 11.01 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.487e-06/0.1451, allocations: 0 / 361.2 MB, free: 11.01 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.494e-06/0.1451, allocations: 4 kB / 361.2 MB, free: 11 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.255e-05/0.1452, allocations: 31.97 kB / 361.2 MB, free: 10.97 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003637/0.1456, allocations: 278.6 kB / 361.5 MB, free: 10.64 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000225/0.1458, allocations: 164.9 kB / 361.6 MB, free: 10.44 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.855e-05/0.1459, allocations: 38.62 kB / 361.7 MB, free: 10.39 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.632e-05/0.1459, allocations: 7.984 kB / 361.7 MB, free: 10.38 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.087e-05/0.1459, allocations: 34.56 kB / 361.7 MB, free: 10.34 MB / 302.1 MB Notification: Performance of pre-optimization done (n=6): time 2.795e-06/0.146, allocations: 0 / 361.7 MB, free: 10.34 MB / 302.1 MB Notification: Performance of matching and sorting (n=6): time 0.0002974/0.1463, allocations: 109.4 kB / 361.8 MB, free: 10.23 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.583e-05/0.1463, allocations: 110.7 kB / 361.9 MB, free: 10.09 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001302/0.1465, allocations: 144.6 kB / 362.1 MB, free: 9.941 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.686e-05/0.1465, allocations: 29.7 kB / 362.1 MB, free: 9.906 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.833e-05/0.1466, allocations: 88.31 kB / 362.2 MB, free: 9.816 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.759e-05/0.1466, allocations: 7.906 kB / 362.2 MB, free: 9.809 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.999e-06/0.1466, allocations: 4 kB / 362.2 MB, free: 9.805 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001254/0.1467, allocations: 314.8 kB / 362.5 MB, free: 9.488 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.079e-05/0.1468, allocations: 19.98 kB / 362.5 MB, free: 9.469 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.437e-05/0.1468, allocations: 48.28 kB / 362.6 MB, free: 9.406 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.797e-05/0.1469, allocations: 23.92 kB / 362.6 MB, free: 9.383 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.1469, allocations: 0 / 362.6 MB, free: 9.383 MB / 302.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001719/0.1471, allocations: 89.61 kB / 362.7 MB, free: 9.289 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.561e-05/0.1471, allocations: 4 kB / 362.7 MB, free: 9.285 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.153e-06/0.1471, allocations: 4 kB / 362.7 MB, free: 9.281 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.244e-05/0.1472, allocations: 0 / 362.7 MB, free: 9.281 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.124e-05/0.1472, allocations: 15.92 kB / 362.7 MB, free: 9.266 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.357e-06/0.1472, allocations: 4 kB / 362.7 MB, free: 9.262 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.942e-05/0.1473, allocations: 7.906 kB / 362.7 MB, free: 9.254 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.618e-06/0.1473, allocations: 8.125 kB / 362.7 MB, free: 9.246 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.y2,$CLKPRE.clockToSquareWave.y2,clockToSquareWave.y) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.142e-05/0.1474, allocations: 125.7 kB / 362.8 MB, free: 9.113 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.072e-05/0.1475, allocations: 57.53 kB / 362.9 MB, free: 9.051 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.953e-05/0.1476, allocations: 12.23 kB / 362.9 MB, free: 9.031 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.154e-06/0.1476, allocations: 4 kB / 362.9 MB, free: 9.027 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.619e-06/0.1476, allocations: 0 / 362.9 MB, free: 9.027 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.216e-06/0.1476, allocations: 0 / 362.9 MB, free: 9.027 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002001/0.1478, allocations: 181.5 kB / 363.1 MB, free: 8.801 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.1478, allocations: 0 / 363.1 MB, free: 8.801 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.388e-05/0.1479, allocations: 12 kB / 363.1 MB, free: 8.789 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.685e-06/0.1479, allocations: 4 kB / 363.1 MB, free: 8.785 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.658e-06/0.1479, allocations: 4 kB / 363.1 MB, free: 8.781 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.226e-06/0.1479, allocations: 4 kB / 363.1 MB, free: 8.777 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.268e-06/0.1479, allocations: 7.984 kB / 363.1 MB, free: 8.77 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002135/0.1481, allocations: 193 kB / 363.3 MB, free: 8.559 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.757e-05/0.1482, allocations: 93 kB / 363.4 MB, free: 8.449 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.173e-05/0.1482, allocations: 4 kB / 363.4 MB, free: 8.445 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.378e-05/0.1483, allocations: 7.938 kB / 363.4 MB, free: 8.438 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.426e-05/0.1484, allocations: 288 / 363.4 MB, free: 8.438 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.588e-06/0.1484, allocations: 8 kB / 363.4 MB, free: 8.43 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.11e-05/0.1485, allocations: 110 kB / 363.5 MB, free: 8.324 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1485, allocations: 0 / 363.5 MB, free: 8.324 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000264/0.1487, allocations: 12 kB / 363.5 MB, free: 8.312 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005931/0.1493, allocations: 0.7531 MB / 364.3 MB, free: 7.523 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000169/0.1495, allocations: 47.91 kB / 364.3 MB, free: 7.477 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.1495, allocations: 0 / 364.3 MB, free: 7.477 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.909e-05/0.1496, allocations: 15.98 kB / 364.4 MB, free: 7.461 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003731/0.15, allocations: 27.97 kB / 364.4 MB, free: 7.438 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009186/0.1509, allocations: 0.5661 MB / 365 MB, free: 6.801 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003065/0.1512, allocations: 0.6965 MB / 365.7 MB, free: 6.078 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.428e-05/0.1513, allocations: 11.94 kB / 365.7 MB, free: 6.066 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.748e-05/0.1513, allocations: 19.42 kB / 365.7 MB, free: 6.047 MB / 302.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1513, allocations: 0 / 365.7 MB, free: 6.047 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01312/0.1644, allocations: 1.515 MB / 367.2 MB, free: 4.719 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002572/0.1648, allocations: 215.5 kB / 367.4 MB, free: 4.477 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.927/2.092, allocations: 4 kB / 367.4 MB, free: 4.473 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToSquareWaveHold_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToSquareWaveHold.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold_res.mat does not exist to compare? outputFormat=mat