Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.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.Hold,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_Hold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.Hold,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_Hold",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.00088/0.0008801, allocations: 93.53 kB / 16.3 MB, free: 5.996 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.0009533/0.0009535, allocations: 185.1 kB / 17.2 MB, free: 5.914 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.379/1.379, allocations: 223.2 MB / 241.1 MB, free: 5.48 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003176/0.0003178, allocations: 6.469 kB / 300.8 MB, free: 6.449 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1344/0.1348, allocations: 50.43 MB / 351.2 MB, free: 11.85 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.Hold): time 0.002/0.1368, allocations: 1.298 MB / 352.5 MB, free: 10.54 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008205/0.1377, allocations: 479 kB / 353 MB, free: 10.07 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001129/0.1378, allocations: 8 kB / 353 MB, free: 10.06 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 4.113e-05/0.1378, allocations: 3.938 kB / 353 MB, free: 10.05 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001561/0.138, allocations: 15.97 kB / 353 MB, free: 10.04 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002906/0.1383, allocations: 42.72 kB / 353.1 MB, free: 10 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001033/0.1384, allocations: 31.95 kB / 353.1 MB, free: 9.969 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001304/0.1386, allocations: 23.91 kB / 353.1 MB, free: 9.945 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.355e-05/0.1386, allocations: 27.84 kB / 353.1 MB, free: 9.918 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.381e-05/0.1387, allocations: 19.88 kB / 353.2 MB, free: 9.898 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.393e-05/0.1387, allocations: 0 / 353.2 MB, free: 9.898 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.521e-05/0.1388, allocations: 4 kB / 353.2 MB, free: 9.895 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.919e-05/0.1388, allocations: 11.98 kB / 353.2 MB, free: 9.883 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 3.223e-05/0.1388, allocations: 37.64 kB / 353.2 MB, free: 9.84 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001115/0.139, allocations: 43.91 kB / 353.3 MB, free: 9.797 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.139, allocations: 0 / 353.3 MB, free: 9.797 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.176e-06/0.139, allocations: 0 / 353.3 MB, free: 9.797 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.211e-06/0.139, allocations: 0 / 353.3 MB, free: 9.797 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0005361/0.1395, allocations: 371 kB / 353.6 MB, free: 9.387 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.012e-05/0.1396, allocations: 8.031 kB / 353.6 MB, free: 9.379 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.985e-05/0.1397, allocations: 42.5 kB / 353.7 MB, free: 9.328 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.368e-05/0.1397, allocations: 11.86 kB / 353.7 MB, free: 9.316 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002426/0.1399, allocations: 195.4 kB / 353.9 MB, free: 9.086 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.316e-06/0.14, allocations: 0 / 353.9 MB, free: 9.086 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.412e-05/0.14, allocations: 7.984 kB / 353.9 MB, free: 9.078 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003137/0.1403, allocations: 134.7 kB / 354 MB, free: 8.922 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.155e-06/0.1403, allocations: 3.938 kB / 354 MB, free: 8.918 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.115e-05/0.1403, allocations: 4 kB / 354 MB, free: 8.914 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.364e-06/0.1403, allocations: 3.953 kB / 354 MB, free: 8.91 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.982e-05/0.1405, allocations: 27.92 kB / 354.1 MB, free: 8.883 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003785/0.1408, allocations: 287.5 kB / 354.3 MB, free: 8.543 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001449/0.141, allocations: 102.4 kB / 354.4 MB, free: 8.406 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.249e-05/0.141, allocations: 0 / 354.4 MB, free: 8.406 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.047e-05/0.1411, allocations: 38.62 kB / 354.5 MB, free: 8.359 MB / 286.1 MB Notification: Performance of pre-optimization done (n=6): time 2.495e-06/0.1411, allocations: 0 / 354.5 MB, free: 8.359 MB / 286.1 MB Notification: Performance of matching and sorting (n=6): time 0.0002965/0.1414, allocations: 121.3 kB / 354.6 MB, free: 8.234 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.379e-05/0.1415, allocations: 132.5 kB / 354.7 MB, free: 8.074 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001398/0.1416, allocations: 149.5 kB / 354.9 MB, free: 7.922 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.493e-05/0.1416, allocations: 29.7 kB / 354.9 MB, free: 7.887 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.666e-05/0.1417, allocations: 84.33 kB / 355 MB, free: 7.801 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.258e-05/0.1417, allocations: 19.83 kB / 355 MB, free: 7.781 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.667e-06/0.1417, allocations: 0 / 355 MB, free: 7.781 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001283/0.1419, allocations: 314.8 kB / 355.3 MB, free: 7.465 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.847e-05/0.1419, allocations: 15.98 kB / 355.3 MB, free: 7.449 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.916e-05/0.142, allocations: 44.28 kB / 355.4 MB, free: 7.391 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.542e-05/0.1421, allocations: 19.94 kB / 355.4 MB, free: 7.371 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.1421, allocations: 0 / 355.4 MB, free: 7.371 MB / 286.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001523/0.1422, allocations: 89.52 kB / 355.5 MB, free: 7.277 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.381e-05/0.1422, allocations: 4 kB / 355.5 MB, free: 7.273 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.079e-06/0.1423, allocations: 0 / 355.5 MB, free: 7.273 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.339e-05/0.1423, allocations: 7.953 kB / 355.5 MB, free: 7.266 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.651e-05/0.1424, allocations: 23.92 kB / 355.5 MB, free: 7.242 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.721e-06/0.1424, allocations: 0 / 355.5 MB, free: 7.242 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.528e-05/0.1424, allocations: 4 kB / 355.5 MB, free: 7.238 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.122e-05/0.1425, allocations: 8.156 kB / 355.5 MB, free: 7.23 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (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 prepare postOptimizeDAE: time 8.878e-05/0.1426, allocations: 117.8 kB / 355.6 MB, free: 7.105 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.217e-05/0.1426, allocations: 61.53 kB / 355.7 MB, free: 7.039 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.592e-05/0.1427, allocations: 15.83 kB / 355.7 MB, free: 7.02 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.447e-06/0.1427, allocations: 4 kB / 355.7 MB, free: 7.016 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.152e-06/0.1427, allocations: 3.953 kB / 355.7 MB, free: 7.012 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.346e-06/0.1427, allocations: 0 / 355.7 MB, free: 7.012 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001873/0.1429, allocations: 177.8 kB / 355.9 MB, free: 6.789 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.925e-06/0.1429, allocations: 4.062 kB / 355.9 MB, free: 6.785 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.155e-05/0.143, allocations: 19.98 kB / 355.9 MB, free: 6.766 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.104e-06/0.143, allocations: 0 / 355.9 MB, free: 6.766 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.278e-06/0.143, allocations: 4 kB / 355.9 MB, free: 6.762 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.917e-06/0.143, allocations: 3.938 kB / 355.9 MB, free: 6.758 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.143, allocations: 0 / 355.9 MB, free: 6.758 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002225/0.1433, allocations: 239.1 kB / 356.2 MB, free: 6.48 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.108e-05/0.1434, allocations: 100.9 kB / 356.3 MB, free: 6.363 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.817e-05/0.1434, allocations: 4 kB / 356.3 MB, free: 6.359 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.37e-05/0.1435, allocations: 11.92 kB / 356.3 MB, free: 6.348 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.394e-05/0.1435, allocations: 4 kB / 356.3 MB, free: 6.344 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.521e-06/0.1435, allocations: 4 kB / 356.3 MB, free: 6.34 MB / 286.1 MB Notification: Performance of sorting global known variables: time 8.566e-05/0.1436, allocations: 108.9 kB / 356.4 MB, free: 6.234 MB / 286.1 MB Notification: Performance of sort global known variables: time 2.464e-06/0.1436, allocations: 0 / 356.4 MB, free: 6.234 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002284/0.1438, allocations: 15.94 kB / 356.4 MB, free: 6.219 MB / 286.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * 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.0005776/0.1444, allocations: 0.9653 MB / 357.4 MB, free: 5.207 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0001468/0.1446, allocations: 51.91 kB / 357.4 MB, free: 5.156 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.1446, allocations: 0 / 357.4 MB, free: 5.156 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 4.326e-05/0.1446, allocations: 11.94 kB / 357.4 MB, free: 5.145 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000312/0.145, allocations: 32.64 kB / 357.5 MB, free: 5.113 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001095/0.1461, allocations: 1.17 MB / 358.6 MB, free: 3.863 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002911/0.1464, allocations: 0.6965 MB / 359.3 MB, free: 3.141 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 3.536e-05/0.1464, allocations: 11.97 kB / 359.3 MB, free: 3.129 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.484e-05/0.1465, allocations: 19.5 kB / 359.4 MB, free: 3.109 MB / 286.1 MB Notification: Performance of SimCode: time 2.71e-07/0.1465, allocations: 0 / 359.4 MB, free: 3.109 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01228/0.1588, allocations: 1.579 MB / 360.9 MB, free: 1.664 MB / 286.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001873/0.159, allocations: 199 kB / 361.1 MB, free: 1.414 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.758/1.917, allocations: 2.953 kB / 361.1 MB, free: 1.414 MB / 286.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Hold_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_Hold_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_Hold.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Hold.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Hold_res.mat does not exist to compare? outputFormat=mat