Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToSquareWaveHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.0009939/0.000994, allocations: 86.7 kB / 16.31 MB, free: 6.449 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009492/0.0009492, allocations: 180.2 kB / 17.21 MB, free: 6.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.545/1.545, allocations: 223.3 MB / 241.2 MB, free: 5.246 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003887/0.0003888, allocations: 6.984 kB / 300.9 MB, free: 5.422 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1494/0.1498, allocations: 50.43 MB / 351.4 MB, free: 11.29 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.002198/0.152, allocations: 1.286 MB / 352.6 MB, free: 9.996 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008433/0.1529, allocations: 487.1 kB / 353.1 MB, free: 9.516 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.031e-05/0.153, allocations: 4 kB / 353.1 MB, free: 9.512 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 3.131e-05/0.1531, allocations: 7.922 kB / 353.1 MB, free: 9.504 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001263/0.1532, allocations: 0 / 353.1 MB, free: 9.504 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003088/0.1535, allocations: 51.83 kB / 353.2 MB, free: 9.453 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001017/0.1536, allocations: 39.86 kB / 353.2 MB, free: 9.414 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.576e-05/0.1537, allocations: 16.17 kB / 353.2 MB, free: 9.398 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.987e-05/0.1538, allocations: 19.92 kB / 353.2 MB, free: 9.379 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.921e-05/0.1539, allocations: 19.86 kB / 353.3 MB, free: 9.359 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.468e-05/0.1539, allocations: 0 / 353.3 MB, free: 9.359 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.178e-05/0.1539, allocations: 0 / 353.3 MB, free: 9.359 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.856e-05/0.154, allocations: 19.92 kB / 353.3 MB, free: 9.34 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 3.646e-05/0.154, allocations: 29.7 kB / 353.3 MB, free: 9.305 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 8.325e-05/0.1541, allocations: 43.91 kB / 353.4 MB, free: 9.262 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.1541, allocations: 0 / 353.4 MB, free: 9.262 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.1541, allocations: 0 / 353.4 MB, free: 9.262 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.081e-06/0.1541, allocations: 0 / 353.4 MB, free: 9.262 MB / 286.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.000515/0.1546, allocations: 375 kB / 353.7 MB, free: 8.848 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.29e-05/0.1547, allocations: 8.031 kB / 353.7 MB, free: 8.84 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.205e-05/0.1547, allocations: 38.55 kB / 353.8 MB, free: 8.793 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.849e-05/0.1548, allocations: 11.86 kB / 353.8 MB, free: 8.781 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002207/0.155, allocations: 194.8 kB / 354 MB, free: 8.551 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.009e-05/0.155, allocations: 0 / 354 MB, free: 8.551 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.619e-05/0.1551, allocations: 8 kB / 354 MB, free: 8.543 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003104/0.1554, allocations: 129.9 kB / 354.1 MB, free: 8.395 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.007e-05/0.1554, allocations: 3.938 kB / 354.1 MB, free: 8.391 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.806e-05/0.1554, allocations: 11.95 kB / 354.1 MB, free: 8.379 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.213e-06/0.1554, allocations: 0 / 354.1 MB, free: 8.379 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.344e-05/0.1555, allocations: 31.97 kB / 354.2 MB, free: 8.348 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003854/0.1559, allocations: 278.6 kB / 354.4 MB, free: 8.02 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002179/0.1561, allocations: 160.9 kB / 354.6 MB, free: 7.816 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.522e-05/0.1562, allocations: 42.62 kB / 354.6 MB, free: 7.766 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.617e-05/0.1563, allocations: 7.938 kB / 354.6 MB, free: 7.758 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.543e-05/0.1563, allocations: 34.56 kB / 354.7 MB, free: 7.715 MB / 286.1 MB Notification: Performance of pre-optimization done (n=6): time 1.242e-06/0.1563, allocations: 0 / 354.7 MB, free: 7.715 MB / 286.1 MB Notification: Performance of matching and sorting (n=6): time 0.0003045/0.1566, allocations: 101.5 kB / 354.8 MB, free: 7.609 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.051e-05/0.1567, allocations: 114.8 kB / 354.9 MB, free: 7.473 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001419/0.1569, allocations: 141 kB / 355 MB, free: 7.324 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.711e-05/0.1569, allocations: 25.7 kB / 355 MB, free: 7.293 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.127e-05/0.157, allocations: 88.23 kB / 355.1 MB, free: 7.203 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.187e-05/0.157, allocations: 15.92 kB / 355.1 MB, free: 7.188 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.178e-06/0.157, allocations: 0 / 355.1 MB, free: 7.188 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001342/0.1571, allocations: 314.8 kB / 355.5 MB, free: 6.871 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.269e-05/0.1572, allocations: 15.98 kB / 355.5 MB, free: 6.855 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.003e-05/0.1573, allocations: 56.22 kB / 355.5 MB, free: 6.785 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.809e-05/0.1574, allocations: 23.92 kB / 355.5 MB, free: 6.762 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.1574, allocations: 0 / 355.5 MB, free: 6.762 MB / 286.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.000193/0.1576, allocations: 93.47 kB / 355.6 MB, free: 6.664 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.024e-05/0.1576, allocations: 4 kB / 355.6 MB, free: 6.66 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.913e-06/0.1576, allocations: 4 kB / 355.6 MB, free: 6.656 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.571e-05/0.1577, allocations: 0 / 355.6 MB, free: 6.656 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.339e-05/0.1577, allocations: 15.94 kB / 355.7 MB, free: 6.641 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.237e-06/0.1578, allocations: 7.984 kB / 355.7 MB, free: 6.633 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.521e-05/0.1578, allocations: 4 kB / 355.7 MB, free: 6.629 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.3e-05/0.1578, allocations: 8.125 kB / 355.7 MB, free: 6.621 MB / 286.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 0.0001271/0.158, allocations: 113.8 kB / 355.8 MB, free: 6.5 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.566e-05/0.1581, allocations: 61.48 kB / 355.8 MB, free: 6.434 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.456e-05/0.1581, allocations: 16.23 kB / 355.9 MB, free: 6.41 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.765e-06/0.1581, allocations: 0 / 355.9 MB, free: 6.41 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.05e-06/0.1581, allocations: 0 / 355.9 MB, free: 6.41 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.186e-06/0.1581, allocations: 0 / 355.9 MB, free: 6.41 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002126/0.1584, allocations: 177.6 kB / 356 MB, free: 6.188 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.188e-06/0.1584, allocations: 8 kB / 356 MB, free: 6.18 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.807e-05/0.1584, allocations: 15.98 kB / 356.1 MB, free: 6.164 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.909e-06/0.1584, allocations: 4.234 kB / 356.1 MB, free: 6.16 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.496e-06/0.1585, allocations: 0 / 356.1 MB, free: 6.16 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.1585, allocations: 4 kB / 356.1 MB, free: 6.156 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.283e-06/0.1585, allocations: 3.938 kB / 356.1 MB, free: 6.152 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002198/0.1587, allocations: 197.1 kB / 356.3 MB, free: 5.938 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.666e-05/0.1588, allocations: 96.98 kB / 356.4 MB, free: 5.824 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.105e-05/0.1588, allocations: 7.953 kB / 356.4 MB, free: 5.816 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.813e-05/0.1589, allocations: 4 kB / 356.4 MB, free: 5.812 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.391e-05/0.1589, allocations: 0 / 356.4 MB, free: 5.812 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.794e-06/0.1589, allocations: 4 kB / 356.4 MB, free: 5.809 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001782/0.1591, allocations: 107.2 kB / 356.5 MB, free: 5.703 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1591, allocations: 0 / 356.5 MB, free: 5.703 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002314/0.1594, allocations: 12 kB / 356.5 MB, free: 5.691 MB / 286.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.0007179/0.1601, allocations: 0.7492 MB / 357.2 MB, free: 4.91 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.000173/0.1603, allocations: 51.91 kB / 357.3 MB, free: 4.859 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 4.438e-06/0.1603, allocations: 0 / 357.3 MB, free: 4.859 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 5.321e-05/0.1603, allocations: 11.94 kB / 357.3 MB, free: 4.848 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003989/0.1607, allocations: 29.14 kB / 357.3 MB, free: 4.82 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009989/0.1617, allocations: 0.5703 MB / 357.9 MB, free: 4.176 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003297/0.1621, allocations: 0.6965 MB / 358.6 MB, free: 3.453 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 3.215e-05/0.1621, allocations: 8.188 kB / 358.6 MB, free: 3.445 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.571e-05/0.1622, allocations: 23.42 kB / 358.6 MB, free: 3.422 MB / 286.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1622, allocations: 0 / 358.6 MB, free: 3.422 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0125/0.1747, allocations: 1.51 MB / 360.1 MB, free: 2.094 MB / 286.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002177/0.175, allocations: 217.3 kB / 360.4 MB, free: 1.855 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.877/2.052, allocations: 4 kB / 360.4 MB, free: 1.852 MB / 286.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToSquareWaveHold_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToSquareWaveHold.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold_res.mat does not exist to compare? outputFormat=mat