Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.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.Sample2,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_Sample2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.Sample2,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_Sample2",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.0007812/0.0007811, allocations: 87.67 kB / 16.31 MB, free: 6.461 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.0008953/0.0008955, allocations: 184.1 kB / 17.21 MB, free: 6.324 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.447/1.447, allocations: 223.3 MB / 241.2 MB, free: 5.414 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003162/0.0003163, allocations: 9.203 kB / 300.9 MB, free: 6.012 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1159/0.1162, allocations: 50.42 MB / 351.3 MB, free: 11.58 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.Sample2): time 0.001815/0.1181, allocations: 1.24 MB / 352.6 MB, free: 10.33 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003977/0.1185, allocations: 147.5 kB / 352.7 MB, free: 10.18 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.684e-05/0.1186, allocations: 4 kB / 352.7 MB, free: 10.18 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 3.302e-05/0.1186, allocations: 7.875 kB / 352.7 MB, free: 10.17 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001318/0.1188, allocations: 3.984 kB / 352.7 MB, free: 10.17 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002625/0.119, allocations: 35.91 kB / 352.8 MB, free: 10.13 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 9.113e-05/0.1191, allocations: 31.86 kB / 352.8 MB, free: 10.1 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001165/0.1193, allocations: 15.94 kB / 352.8 MB, free: 10.09 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.753e-05/0.1193, allocations: 7.984 kB / 352.8 MB, free: 10.08 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.583e-05/0.1194, allocations: 19.88 kB / 352.9 MB, free: 10.06 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.116e-05/0.1194, allocations: 0 / 352.9 MB, free: 10.06 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.107e-05/0.1194, allocations: 0 / 352.9 MB, free: 10.06 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.31e-05/0.1195, allocations: 7.984 kB / 352.9 MB, free: 10.05 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 4.846e-05/0.1195, allocations: 37.64 kB / 352.9 MB, free: 10.01 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 8.569e-05/0.1196, allocations: 31.94 kB / 352.9 MB, free: 9.977 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.552e-06/0.1196, allocations: 0 / 352.9 MB, free: 9.977 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.354e-06/0.1196, allocations: 0 / 352.9 MB, free: 9.977 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.511e-06/0.1196, allocations: 0 / 352.9 MB, free: 9.977 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0006439/0.1203, allocations: 359.2 kB / 353.3 MB, free: 9.578 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.234e-05/0.1203, allocations: 8.031 kB / 353.3 MB, free: 9.57 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.22e-05/0.1204, allocations: 34.55 kB / 353.3 MB, free: 9.527 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.241e-05/0.1204, allocations: 19.86 kB / 353.3 MB, free: 9.508 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002355/0.1207, allocations: 182.8 kB / 353.5 MB, free: 9.289 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.176e-05/0.1207, allocations: 4 kB / 353.5 MB, free: 9.285 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.546e-05/0.1207, allocations: 8 kB / 353.5 MB, free: 9.277 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003468/0.1211, allocations: 117 kB / 353.6 MB, free: 9.145 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.375e-05/0.1211, allocations: 0 / 353.6 MB, free: 9.145 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.292e-05/0.1211, allocations: 3.938 kB / 353.7 MB, free: 9.141 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.086e-05/0.1211, allocations: 7.953 kB / 353.7 MB, free: 9.133 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.542e-05/0.1212, allocations: 27.91 kB / 353.7 MB, free: 9.105 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004256/0.1217, allocations: 265.7 kB / 353.9 MB, free: 8.793 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002561/0.1219, allocations: 138.3 kB / 354.1 MB, free: 8.621 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.358e-05/0.122, allocations: 41.7 kB / 354.1 MB, free: 8.574 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.308e-05/0.122, allocations: 0 / 354.1 MB, free: 8.574 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.109e-05/0.1221, allocations: 30.56 kB / 354.2 MB, free: 8.535 MB / 286.1 MB Notification: Performance of pre-optimization done (n=4): time 8.92e-07/0.1221, allocations: 0 / 354.2 MB, free: 8.535 MB / 286.1 MB Notification: Performance of matching and sorting (n=4): time 0.0003201/0.1224, allocations: 85.66 kB / 354.2 MB, free: 8.445 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.516e-05/0.1225, allocations: 89.09 kB / 354.3 MB, free: 8.34 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002418/0.1228, allocations: 126.1 kB / 354.4 MB, free: 8.203 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.971e-05/0.1228, allocations: 29.7 kB / 354.5 MB, free: 8.168 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.377e-05/0.1228, allocations: 84.14 kB / 354.6 MB, free: 8.082 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.744e-05/0.1229, allocations: 7.906 kB / 354.6 MB, free: 8.074 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.721e-06/0.1229, allocations: 0 / 354.6 MB, free: 8.074 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0002501/0.1231, allocations: 318.8 kB / 354.9 MB, free: 7.754 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.388e-05/0.1232, allocations: 16 kB / 354.9 MB, free: 7.738 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001239/0.1233, allocations: 31.42 kB / 354.9 MB, free: 7.695 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.179e-05/0.1234, allocations: 20 kB / 354.9 MB, free: 7.676 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.1234, allocations: 0 / 354.9 MB, free: 7.676 MB / 286.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001333/0.1235, allocations: 65.61 kB / 355 MB, free: 7.605 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.21e-05/0.1236, allocations: 4 kB / 355 MB, free: 7.602 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.367e-05/0.1236, allocations: 7.953 kB / 355 MB, free: 7.594 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.333e-05/0.1236, allocations: 0 / 355 MB, free: 7.594 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.847e-05/0.1237, allocations: 20.05 kB / 355 MB, free: 7.574 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.373e-06/0.1237, allocations: 0 / 355 MB, free: 7.574 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.419e-05/0.1237, allocations: 7.906 kB / 355 MB, free: 7.566 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.099e-05/0.1237, allocations: 4 kB / 355 MB, free: 7.562 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (4): * Single equations (assignments): 4 * 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.0001247/0.1239, allocations: 113.8 kB / 355.2 MB, free: 7.441 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.049e-05/0.1239, allocations: 45.69 kB / 355.2 MB, free: 7.391 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.495e-05/0.124, allocations: 12.25 kB / 355.2 MB, free: 7.371 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.631e-06/0.124, allocations: 3.953 kB / 355.2 MB, free: 7.367 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.025e-05/0.124, allocations: 3.984 kB / 355.2 MB, free: 7.363 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.354e-06/0.124, allocations: 4 kB / 355.2 MB, free: 7.359 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003794/0.1244, allocations: 173.5 kB / 355.4 MB, free: 7.141 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.964e-06/0.1244, allocations: 7.938 kB / 355.4 MB, free: 7.133 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.559e-05/0.1245, allocations: 8 kB / 355.4 MB, free: 7.125 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.314e-06/0.1245, allocations: 0 / 355.4 MB, free: 7.125 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.324e-06/0.1245, allocations: 0 / 355.4 MB, free: 7.125 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.1245, allocations: 3.938 kB / 355.4 MB, free: 7.121 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.15e-06/0.1245, allocations: 7.953 kB / 355.4 MB, free: 7.113 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002006/0.1247, allocations: 164.7 kB / 355.6 MB, free: 6.934 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.564e-05/0.1248, allocations: 96.94 kB / 355.7 MB, free: 6.82 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.641e-05/0.1248, allocations: 0 / 355.7 MB, free: 6.82 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.356e-05/0.1249, allocations: 4 kB / 355.7 MB, free: 6.816 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.443e-05/0.125, allocations: 15.91 kB / 355.7 MB, free: 6.801 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.454e-06/0.125, allocations: 8 kB / 355.7 MB, free: 6.793 MB / 286.1 MB Notification: Performance of sorting global known variables: time 8.313e-05/0.1252, allocations: 105.2 kB / 355.8 MB, free: 6.691 MB / 286.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1252, allocations: 0 / 355.8 MB, free: 6.691 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002391/0.1254, allocations: 8 kB / 355.8 MB, free: 6.684 MB / 286.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (4): * Single equations (assignments): 4 * 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.000489/0.1259, allocations: 0.6976 MB / 356.5 MB, free: 5.957 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0001363/0.1261, allocations: 35.91 kB / 356.6 MB, free: 5.922 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.1261, allocations: 0 / 356.6 MB, free: 5.922 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 3.024e-05/0.1261, allocations: 8 kB / 356.6 MB, free: 5.914 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003928/0.1265, allocations: 35.19 kB / 356.6 MB, free: 5.883 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008155/0.1273, allocations: 482 kB / 357.1 MB, free: 5.348 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004031/0.1278, allocations: 0.6887 MB / 357.8 MB, free: 4.633 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 2.799e-05/0.1278, allocations: 0 / 357.8 MB, free: 4.633 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.085e-05/0.1278, allocations: 19.42 kB / 357.8 MB, free: 4.613 MB / 286.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1279, allocations: 4 kB / 357.8 MB, free: 4.609 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01258/0.1404, allocations: 1.231 MB / 359 MB, free: 3.516 MB / 286.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001912/0.1407, allocations: 200.1 kB / 359.2 MB, free: 3.27 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.826/1.967, allocations: 0 / 359.2 MB, free: 3.27 MB / 286.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_Sample2_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_Sample2.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2_res.mat does not exist to compare? outputFormat=mat