Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.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.SampleClocked,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleClocked",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleClocked",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.001084/0.001084, allocations: 95.94 kB / 16.3 MB, free: 5.992 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.001345/0.001345, allocations: 181.6 kB / 17.2 MB, free: 5.906 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.357/1.357, allocations: 223.2 MB / 241.1 MB, free: 5.465 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003838/0.0003838, allocations: 6.469 kB / 300.8 MB, free: 5.965 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1203/0.1207, allocations: 50.42 MB / 351.2 MB, free: 11.66 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked): time 0.002208/0.123, allocations: 1.255 MB / 352.5 MB, free: 10.39 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008859/0.1239, allocations: 435.3 kB / 352.9 MB, free: 9.961 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.669e-05/0.124, allocations: 4 kB / 352.9 MB, free: 9.957 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 4.628e-05/0.124, allocations: 7.922 kB / 352.9 MB, free: 9.949 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001441/0.1242, allocations: 7.984 kB / 352.9 MB, free: 9.941 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000257/0.1245, allocations: 39.09 kB / 353 MB, free: 9.906 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 8.654e-05/0.1245, allocations: 19.97 kB / 353 MB, free: 9.887 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001186/0.1247, allocations: 23.91 kB / 353 MB, free: 9.863 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.584e-05/0.1248, allocations: 11.92 kB / 353 MB, free: 9.852 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.719e-05/0.1248, allocations: 27.86 kB / 353 MB, free: 9.824 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.203e-05/0.1249, allocations: 0 / 353 MB, free: 9.824 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.322e-05/0.1249, allocations: 0 / 353 MB, free: 9.824 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.618e-05/0.1249, allocations: 4 kB / 353.1 MB, free: 9.82 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 3.398e-05/0.125, allocations: 41.58 kB / 353.1 MB, free: 9.773 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 8.242e-05/0.125, allocations: 31.92 kB / 353.1 MB, free: 9.742 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.998e-06/0.1251, allocations: 0 / 353.1 MB, free: 9.742 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.1251, allocations: 0 / 353.1 MB, free: 9.742 MB / 286.1 MB Notification: Performance of Transformations before backend: time 3.958e-06/0.1251, allocations: 0 / 353.1 MB, free: 9.742 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: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0005555/0.1256, allocations: 367.1 kB / 353.5 MB, free: 9.336 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.927e-05/0.1257, allocations: 8.031 kB / 353.5 MB, free: 9.328 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.06e-05/0.1257, allocations: 30.56 kB / 353.5 MB, free: 9.289 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.305e-05/0.1258, allocations: 7.953 kB / 353.5 MB, free: 9.281 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002536/0.126, allocations: 186.9 kB / 353.7 MB, free: 9.059 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.273e-05/0.126, allocations: 7.938 kB / 353.7 MB, free: 9.051 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.37e-05/0.1261, allocations: 0 / 353.7 MB, free: 9.051 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003018/0.1264, allocations: 101 kB / 353.8 MB, free: 8.934 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.005e-05/0.1264, allocations: 0 / 353.8 MB, free: 8.934 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.628e-06/0.1264, allocations: 3.938 kB / 353.8 MB, free: 8.93 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.027e-06/0.1264, allocations: 3.953 kB / 353.8 MB, free: 8.926 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.959e-05/0.1265, allocations: 23.98 kB / 353.8 MB, free: 8.902 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003679/0.1269, allocations: 257.8 kB / 354.1 MB, free: 8.598 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.811e-05/0.127, allocations: 45.16 kB / 354.1 MB, free: 8.535 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.903e-05/0.127, allocations: 0 / 354.1 MB, free: 8.535 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.835e-05/0.1271, allocations: 38.56 kB / 354.2 MB, free: 8.488 MB / 286.1 MB Notification: Performance of pre-optimization done (n=2): time 8.62e-07/0.1271, allocations: 0 / 354.2 MB, free: 8.488 MB / 286.1 MB Notification: Performance of matching and sorting (n=2): time 0.000274/0.1274, allocations: 77.53 kB / 354.3 MB, free: 8.406 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.673e-05/0.1275, allocations: 77.11 kB / 354.3 MB, free: 8.312 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001591/0.1276, allocations: 144.7 kB / 354.5 MB, free: 8.164 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.689e-05/0.1276, allocations: 29.7 kB / 354.5 MB, free: 8.129 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.221e-05/0.1277, allocations: 88.14 kB / 354.6 MB, free: 8.039 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.63e-05/0.1277, allocations: 7.922 kB / 354.6 MB, free: 8.031 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.937e-06/0.1278, allocations: 0 / 354.6 MB, free: 8.031 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0002034/0.128, allocations: 318.8 kB / 354.9 MB, free: 7.711 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.424e-05/0.128, allocations: 8 kB / 354.9 MB, free: 7.703 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.415e-05/0.1281, allocations: 33.7 kB / 354.9 MB, free: 7.664 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.553e-05/0.1281, allocations: 8 kB / 355 MB, free: 7.656 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.1281, allocations: 0 / 355 MB, free: 7.656 MB / 286.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001265/0.1283, allocations: 65.52 kB / 355 MB, free: 7.586 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.069e-05/0.1283, allocations: 4 kB / 355 MB, free: 7.582 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.598e-06/0.1283, allocations: 8.125 kB / 355 MB, free: 7.574 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.779e-05/0.1283, allocations: 3.953 kB / 355 MB, free: 7.57 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.745e-05/0.1284, allocations: 4 kB / 355 MB, free: 7.566 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.566e-06/0.1285, allocations: 0 / 355 MB, free: 7.566 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.705e-05/0.1285, allocations: 4 kB / 355 MB, free: 7.562 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.359e-05/0.1285, allocations: 7.984 kB / 355.1 MB, free: 7.555 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (2): * Single equations (assignments): 2 * 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.0001546/0.1287, allocations: 113.8 kB / 355.2 MB, free: 7.434 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.394e-05/0.1288, allocations: 41.61 kB / 355.2 MB, free: 7.387 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.03e-05/0.1288, allocations: 15.86 kB / 355.2 MB, free: 7.367 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.823e-06/0.1288, allocations: 0 / 355.2 MB, free: 7.367 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.047e-06/0.1288, allocations: 3.953 kB / 355.2 MB, free: 7.363 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.494e-06/0.1289, allocations: 0 / 355.2 MB, free: 7.363 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002621/0.1291, allocations: 173.6 kB / 355.4 MB, free: 7.145 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.1291, allocations: 0 / 355.4 MB, free: 7.145 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.468e-05/0.1292, allocations: 4 kB / 355.4 MB, free: 7.141 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.783e-06/0.1292, allocations: 0 / 355.4 MB, free: 7.141 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.835e-06/0.1292, allocations: 4 kB / 355.4 MB, free: 7.137 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-06/0.1292, allocations: 0 / 355.4 MB, free: 7.137 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.352e-06/0.1292, allocations: 7.969 kB / 355.4 MB, free: 7.129 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002385/0.1295, allocations: 174.1 kB / 355.6 MB, free: 6.934 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.197e-05/0.1296, allocations: 89 kB / 355.7 MB, free: 6.828 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.77e-05/0.1296, allocations: 4.031 kB / 355.7 MB, free: 6.824 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.623e-05/0.1297, allocations: 4 kB / 355.7 MB, free: 6.82 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.249e-05/0.1297, allocations: 11.94 kB / 355.7 MB, free: 6.809 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.645e-06/0.1297, allocations: 7.922 kB / 355.7 MB, free: 6.801 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001091/0.1299, allocations: 109.1 kB / 355.8 MB, free: 6.695 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1299, allocations: 0 / 355.8 MB, free: 6.695 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002189/0.1301, allocations: 4 kB / 355.8 MB, free: 6.691 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 (2): * Single equations (assignments): 2 * 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.0005897/0.1307, allocations: 0.772 MB / 356.6 MB, free: 5.887 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0001336/0.1308, allocations: 31.95 kB / 356.6 MB, free: 5.855 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.1308, allocations: 4 kB / 356.6 MB, free: 5.852 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 3.806e-05/0.1309, allocations: 7.984 kB / 356.6 MB, free: 5.844 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000295/0.1312, allocations: 15.98 kB / 356.6 MB, free: 5.828 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008961/0.1321, allocations: 0.6201 MB / 357.3 MB, free: 5.148 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002971/0.1324, allocations: 0.6887 MB / 357.9 MB, free: 4.434 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 2.69e-05/0.1324, allocations: 8.172 kB / 358 MB, free: 4.426 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.341e-05/0.1325, allocations: 15.44 kB / 358 MB, free: 4.41 MB / 286.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1325, allocations: 0 / 358 MB, free: 4.41 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01167/0.1442, allocations: 1.215 MB / 359.2 MB, free: 3.348 MB / 286.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001936/0.1444, allocations: 197.7 kB / 359.4 MB, free: 3.105 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.788/1.932, allocations: 7.031 kB / 359.4 MB, free: 3.102 MB / 286.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleClocked_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SampleClocked.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SampleClocked_res.mat does not exist to compare? outputFormat=mat