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.001018/0.001019, allocations: 96.53 kB / 16.3 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.0009811/0.0009813, allocations: 174.1 kB / 17.19 MB, free: 6.348 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.573/1.573, allocations: 223.2 MB / 241.1 MB, free: 412 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000289/0.0002892, allocations: 8 kB / 300.8 MB, free: 6.402 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.126/0.1264, allocations: 50.41 MB / 351.2 MB, free: 3.977 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedSine): time 0.00193/0.1284, allocations: 1.19 MB / 352.4 MB, free: 2.773 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006959/0.1291, allocations: 408 kB / 352.8 MB, free: 2.371 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.91e-05/0.1292, allocations: 7.938 kB / 352.8 MB, free: 2.363 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 2.277e-05/0.1292, allocations: 3.984 kB / 352.8 MB, free: 2.359 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 7.447e-05/0.1293, allocations: 11.92 kB / 352.8 MB, free: 2.348 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002744/0.1296, allocations: 19.97 kB / 352.9 MB, free: 2.328 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 8.329e-05/0.1296, allocations: 19.98 kB / 352.9 MB, free: 2.309 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001006/0.1298, allocations: 7.984 kB / 352.9 MB, free: 2.301 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.482e-05/0.1298, allocations: 19.92 kB / 352.9 MB, free: 2.281 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.506e-05/0.1299, allocations: 15.92 kB / 352.9 MB, free: 2.266 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.037e-05/0.1299, allocations: 0 / 352.9 MB, free: 2.266 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.465e-05/0.13, allocations: 7.938 kB / 352.9 MB, free: 2.258 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 1.874e-05/0.13, allocations: 4 kB / 352.9 MB, free: 2.254 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 3.766e-05/0.13, allocations: 33.69 kB / 353 MB, free: 2.215 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 7.07e-05/0.1301, allocations: 19.95 kB / 353 MB, free: 2.195 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.1301, allocations: 3.938 kB / 353 MB, free: 2.191 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.1301, allocations: 0 / 353 MB, free: 2.191 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.799e-06/0.1301, allocations: 0 / 353 MB, free: 2.191 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.0004858/0.1306, allocations: 351.4 kB / 353.3 MB, free: 1.801 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.785e-05/0.1307, allocations: 8.031 kB / 353.3 MB, free: 1.793 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.826e-05/0.1307, allocations: 34.5 kB / 353.4 MB, free: 1.75 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.859e-05/0.1307, allocations: 7.953 kB / 353.4 MB, free: 1.742 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001936/0.1309, allocations: 178.9 kB / 353.6 MB, free: 1.527 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.087e-05/0.131, allocations: 4 kB / 353.6 MB, free: 1.523 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.488e-06/0.131, allocations: 0 / 353.6 MB, free: 1.523 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003376/0.1313, allocations: 119.3 kB / 353.7 MB, free: 1.395 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.564e-06/0.1313, allocations: 0 / 353.7 MB, free: 1.395 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.174e-05/0.1314, allocations: 0 / 353.7 MB, free: 1.395 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.067e-05/0.1314, allocations: 7.891 kB / 353.7 MB, free: 1.387 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.041e-05/0.1315, allocations: 23.98 kB / 353.7 MB, free: 1.363 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001567/0.1316, allocations: 165.7 kB / 353.9 MB, free: 1.152 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001675/0.1318, allocations: 62.58 kB / 353.9 MB, free: 1.082 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.018e-05/0.1318, allocations: 0 / 353.9 MB, free: 1.082 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.532e-05/0.1319, allocations: 30.56 kB / 354 MB, free: 1.043 MB / 286.1 MB Notification: Performance of pre-optimization done (n=4): time 9.11e-07/0.1319, allocations: 4 kB / 354 MB, free: 1.039 MB / 286.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002464/0.1321, allocations: 89.64 kB / 354.1 MB, free: 0.9453 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.485e-05/0.1322, allocations: 55.41 kB / 354.1 MB, free: 0.8789 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.251e-05/0.1323, allocations: 113.7 kB / 354.2 MB, free: 0.7578 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.339e-05/0.1323, allocations: 25.7 kB / 354.2 MB, free: 0.7266 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.124e-05/0.1324, allocations: 92.14 kB / 354.3 MB, free: 0.6328 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.821e-06/0.1324, allocations: 0 / 354.3 MB, free: 0.6328 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.224e-06/0.1324, allocations: 0 / 354.3 MB, free: 0.6328 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001183/0.1325, allocations: 318.8 kB / 354.6 MB, free: 320 kB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.108e-05/0.1325, allocations: 4 kB / 354.7 MB, free: 316 kB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.855e-05/0.1326, allocations: 35.55 kB / 354.7 MB, free: 268 kB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.874e-05/0.1326, allocations: 8 kB / 354.7 MB, free: 260 kB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.1326, allocations: 0 / 354.7 MB, free: 260 kB / 286.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 7.711e-05/0.1327, allocations: 53.62 kB / 354.7 MB, free: 200 kB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.429e-05/0.1327, allocations: 4 kB / 354.8 MB, free: 196 kB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.775e-06/0.1327, allocations: 4 kB / 354.8 MB, free: 192 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.227e-05/0.1327, allocations: 3.938 kB / 354.8 MB, free: 188 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.501e-05/0.1328, allocations: 8 kB / 354.8 MB, free: 180 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.506e-06/0.1328, allocations: 7.922 kB / 354.8 MB, free: 172 kB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.409e-05/0.1328, allocations: 16.06 kB / 354.8 MB, free: 156 kB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.871e-06/0.1328, allocations: 8 kB / 354.8 MB, free: 148 kB / 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 6.168e-05/0.1329, allocations: 105.8 kB / 354.9 MB, free: 32 kB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001585/0.1331, allocations: 65.59 kB / 355 MB, free: 15.96 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.138e-05/0.1331, allocations: 15.89 kB / 355 MB, free: 15.94 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.164e-06/0.1331, allocations: 0 / 355 MB, free: 15.94 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.05e-06/0.1331, allocations: 0 / 355 MB, free: 15.94 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.797e-06/0.1332, allocations: 4 kB / 355 MB, free: 15.93 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001203/0.1333, allocations: 161.6 kB / 355.1 MB, free: 15.73 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.222e-06/0.1333, allocations: 0 / 355.1 MB, free: 15.73 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.399e-05/0.1334, allocations: 8 kB / 355.2 MB, free: 15.72 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.619e-06/0.1334, allocations: 0 / 355.2 MB, free: 15.72 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.434e-06/0.1334, allocations: 3.938 kB / 355.2 MB, free: 15.71 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.773e-06/0.1334, allocations: 4 kB / 355.2 MB, free: 15.71 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.1334, allocations: 0 / 355.2 MB, free: 15.71 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002031/0.1336, allocations: 93.06 kB / 355.2 MB, free: 15.6 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.663e-05/0.1337, allocations: 93 kB / 355.3 MB, free: 15.49 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.935e-05/0.1337, allocations: 0 / 355.3 MB, free: 15.49 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.639e-05/0.1338, allocations: 4 kB / 355.3 MB, free: 15.49 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.206e-06/0.1338, allocations: 384 / 355.3 MB, free: 15.49 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.769e-06/0.1338, allocations: 0 / 355.3 MB, free: 15.49 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.667e-05/0.1339, allocations: 95.2 kB / 355.4 MB, free: 15.39 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1339, allocations: 0 / 355.4 MB, free: 15.39 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0001966/0.1341, allocations: 8 kB / 355.4 MB, free: 15.39 MB / 302.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.0004219/0.1345, allocations: 0.6319 MB / 356.1 MB, free: 14.73 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001176/0.1346, allocations: 35.92 kB / 356.1 MB, free: 14.69 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.953e-06/0.1346, allocations: 0 / 356.1 MB, free: 14.69 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.81e-07/0.1347, allocations: 0 / 356.1 MB, free: 14.69 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001907/0.1349, allocations: 19.98 kB / 356.1 MB, free: 14.67 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007324/0.1356, allocations: 0.8641 MB / 357 MB, free: 13.75 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002256/0.1358, allocations: 0.6888 MB / 357.7 MB, free: 13.03 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 1.343e-05/0.1359, allocations: 3.984 kB / 357.7 MB, free: 13.03 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.845e-05/0.1359, allocations: 15.44 kB / 357.7 MB, free: 13.01 MB / 302.1 MB Notification: Performance of SimCode: time 2.6e-07/0.1359, allocations: 0 / 357.7 MB, free: 13.01 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01099/0.1469, allocations: 1.097 MB / 358.8 MB, free: 12.06 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003057/0.1472, allocations: 201.5 kB / 359 MB, free: 11.82 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.827/1.975, allocations: 0 / 359 MB, free: 11.82 MB / 302.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