Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine.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.TimeBasedSine,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_TimeBasedSine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_TimeBasedSine",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.000745/0.0007449, allocations: 87.98 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.0008382/0.0008383, allocations: 179.5 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.458/1.458, allocations: 223.2 MB / 241.2 MB, free: 5.258 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002575/0.0002576, allocations: 5.109 kB / 300.9 MB, free: 5.523 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1244/0.1246, allocations: 50.43 MB / 351.3 MB, free: 11.27 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine): time 0.001854/0.1265, allocations: 1.204 MB / 352.5 MB, free: 10.06 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006815/0.1272, allocations: 403.4 kB / 352.9 MB, free: 9.66 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.852e-05/0.1273, allocations: 4 kB / 352.9 MB, free: 9.656 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 1.698e-05/0.1274, allocations: 3.938 kB / 352.9 MB, free: 9.652 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 6.485e-05/0.1274, allocations: 7.938 kB / 353 MB, free: 9.645 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002579/0.1277, allocations: 31.95 kB / 353 MB, free: 9.613 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 8.494e-05/0.1278, allocations: 31.86 kB / 353 MB, free: 9.582 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.256e-05/0.1279, allocations: 15.97 kB / 353 MB, free: 9.566 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.786e-05/0.128, allocations: 11.94 kB / 353 MB, free: 9.555 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.224e-05/0.128, allocations: 11.92 kB / 353.1 MB, free: 9.543 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.502e-05/0.1281, allocations: 4 kB / 353.1 MB, free: 9.539 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.518e-06/0.1281, allocations: 0 / 353.1 MB, free: 9.539 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 1.59e-05/0.1281, allocations: 11.94 kB / 353.1 MB, free: 9.527 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 3.54e-05/0.1281, allocations: 29.7 kB / 353.1 MB, free: 9.492 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 7.899e-05/0.1282, allocations: 27.94 kB / 353.1 MB, free: 9.465 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.009e-06/0.1282, allocations: 0 / 353.1 MB, free: 9.465 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.164e-06/0.1282, allocations: 0 / 353.1 MB, free: 9.465 MB / 286.1 MB Notification: Performance of Transformations before backend: time 3.928e-06/0.1283, allocations: 0 / 353.1 MB, free: 9.465 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0004489/0.1287, allocations: 343.2 kB / 353.5 MB, free: 9.082 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.017e-05/0.1288, allocations: 12.03 kB / 353.5 MB, free: 9.07 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.802e-05/0.1288, allocations: 30.56 kB / 353.5 MB, free: 9.031 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.892e-05/0.1288, allocations: 15.86 kB / 353.5 MB, free: 9.016 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001909/0.129, allocations: 182.8 kB / 353.7 MB, free: 8.797 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.866e-06/0.1291, allocations: 0 / 353.7 MB, free: 8.797 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.346e-05/0.1291, allocations: 4 kB / 353.7 MB, free: 8.793 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003322/0.1294, allocations: 119.3 kB / 353.8 MB, free: 8.664 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.304e-06/0.1294, allocations: 0 / 353.8 MB, free: 8.664 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.016e-05/0.1295, allocations: 4 kB / 353.8 MB, free: 8.66 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.124e-06/0.1295, allocations: 3.953 kB / 353.8 MB, free: 8.656 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.525e-05/0.1296, allocations: 23.98 kB / 353.9 MB, free: 8.633 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001774/0.1298, allocations: 161.6 kB / 354 MB, free: 8.426 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001672/0.1299, allocations: 70.48 kB / 354.1 MB, free: 8.348 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.122e-05/0.13, allocations: 24.92 kB / 354.1 MB, free: 8.32 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.181e-05/0.13, allocations: 4 kB / 354.1 MB, free: 8.316 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.347e-05/0.1301, allocations: 30.56 kB / 354.1 MB, free: 8.277 MB / 286.1 MB Notification: Performance of pre-optimization done (n=4): time 1.323e-06/0.1301, allocations: 4 kB / 354.1 MB, free: 8.273 MB / 286.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002639/0.1304, allocations: 81.61 kB / 354.2 MB, free: 8.188 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.863e-05/0.1304, allocations: 51.41 kB / 354.3 MB, free: 8.125 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.265e-05/0.1305, allocations: 113.8 kB / 354.4 MB, free: 8.004 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.078e-05/0.1305, allocations: 33.69 kB / 354.4 MB, free: 7.965 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.393e-05/0.1306, allocations: 88.14 kB / 354.5 MB, free: 7.875 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.534e-06/0.1306, allocations: 4 kB / 354.5 MB, free: 7.871 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.946e-06/0.1306, allocations: 0 / 354.5 MB, free: 7.871 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.000118/0.1308, allocations: 310.8 kB / 354.8 MB, free: 7.559 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.179e-05/0.1308, allocations: 4 kB / 354.8 MB, free: 7.555 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.262e-05/0.1308, allocations: 31.42 kB / 354.8 MB, free: 7.512 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.226e-05/0.1308, allocations: 8 kB / 354.9 MB, free: 7.504 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.854e-06/0.1308, allocations: 0 / 354.9 MB, free: 7.504 MB / 286.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 7.954e-05/0.1309, allocations: 65.47 kB / 354.9 MB, free: 7.434 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.75e-05/0.131, allocations: 4 kB / 354.9 MB, free: 7.43 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.153e-06/0.131, allocations: 4.656 kB / 354.9 MB, free: 7.426 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.304e-05/0.131, allocations: 0 / 354.9 MB, free: 7.426 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.365e-05/0.131, allocations: 4 kB / 354.9 MB, free: 7.422 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.156e-06/0.1311, allocations: 4 kB / 354.9 MB, free: 7.418 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.34e-05/0.1311, allocations: 15.95 kB / 354.9 MB, free: 7.402 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.651e-06/0.1311, allocations: 4 kB / 355 MB, free: 7.398 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 8.47e-05/0.1312, allocations: 109.8 kB / 355.1 MB, free: 7.281 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001169/0.1313, allocations: 73.5 kB / 355.1 MB, free: 7.203 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.884e-05/0.1314, allocations: 7.906 kB / 355.1 MB, free: 7.188 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.928e-06/0.1314, allocations: 4 kB / 355.1 MB, free: 7.184 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.849e-06/0.1314, allocations: 0 / 355.1 MB, free: 7.184 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.7e-06/0.1314, allocations: 7.984 kB / 355.1 MB, free: 7.176 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001181/0.1315, allocations: 157.6 kB / 355.3 MB, free: 6.973 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.001e-06/0.1315, allocations: 0 / 355.3 MB, free: 6.973 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.673e-05/0.1316, allocations: 15.98 kB / 355.3 MB, free: 6.957 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.084e-06/0.1316, allocations: 3.938 kB / 355.3 MB, free: 6.953 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.256e-06/0.1316, allocations: 0 / 355.3 MB, free: 6.953 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.747e-06/0.1316, allocations: 4 kB / 355.3 MB, free: 6.949 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.1316, allocations: 0 / 355.3 MB, free: 6.949 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001672/0.1318, allocations: 105 kB / 355.4 MB, free: 6.828 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.309e-05/0.1319, allocations: 89 kB / 355.5 MB, free: 6.723 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.485e-05/0.1319, allocations: 0 / 355.5 MB, free: 6.723 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.41e-05/0.132, allocations: 0 / 355.5 MB, free: 6.723 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.971e-06/0.132, allocations: 4 kB / 355.5 MB, free: 6.719 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.668e-06/0.132, allocations: 0 / 355.5 MB, free: 6.719 MB / 286.1 MB Notification: Performance of sorting global known variables: time 5.368e-05/0.132, allocations: 91.27 kB / 355.6 MB, free: 6.629 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.132, allocations: 0 / 355.6 MB, free: 6.629 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0001808/0.1322, allocations: 8 kB / 355.6 MB, free: 6.621 MB / 286.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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.0004848/0.1327, allocations: 0.6241 MB / 356.2 MB, free: 5.969 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0001156/0.1328, allocations: 27.98 kB / 356.3 MB, free: 5.941 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.1329, allocations: 4 kB / 356.3 MB, free: 5.938 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 4.71e-07/0.1329, allocations: 0 / 356.3 MB, free: 5.938 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002794/0.1332, allocations: 23.92 kB / 356.3 MB, free: 5.914 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007337/0.1339, allocations: 425.2 kB / 356.7 MB, free: 5.441 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000315/0.1342, allocations: 0.6851 MB / 357.4 MB, free: 4.73 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 1.602e-05/0.1342, allocations: 0 / 357.4 MB, free: 4.73 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.308e-05/0.1343, allocations: 19.44 kB / 357.4 MB, free: 4.711 MB / 286.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1343, allocations: 3.938 kB / 357.4 MB, free: 4.707 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01445/0.1488, allocations: 1.107 MB / 358.5 MB, free: 3.754 MB / 286.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002198/0.1491, allocations: 203.2 kB / 358.7 MB, free: 3.512 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.937/2.086, allocations: 0 / 358.7 MB, free: 3.512 MB / 286.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_TimeBasedSine_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_TimeBasedSine.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine_res.mat does not exist to compare? outputFormat=mat