Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.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.SubSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.SubSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SubSample",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.0008295/0.0008297, allocations: 85.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.0008589/0.0008589, allocations: 183 kB / 17.21 MB, free: 6.316 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.452/1.452, allocations: 223.2 MB / 241.2 MB, free: 5.426 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003509/0.000351, allocations: 6.875 kB / 300.9 MB, free: 6.023 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1304/0.1308, allocations: 50.42 MB / 351.3 MB, free: 11.59 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.SubSample): time 0.002091/0.1329, allocations: 1.275 MB / 352.6 MB, free: 10.31 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008279/0.1338, allocations: 463.1 kB / 353.1 MB, free: 9.852 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.863e-05/0.1339, allocations: 4 kB / 353.1 MB, free: 9.848 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 3.25e-05/0.1339, allocations: 3.938 kB / 353.1 MB, free: 9.844 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000143/0.1341, allocations: 15.92 kB / 353.1 MB, free: 9.828 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002709/0.1344, allocations: 35.89 kB / 353.1 MB, free: 9.793 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001081/0.1345, allocations: 47.83 kB / 353.2 MB, free: 9.746 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001025/0.1346, allocations: 12.12 kB / 353.2 MB, free: 9.734 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.153e-05/0.1347, allocations: 27.92 kB / 353.2 MB, free: 9.707 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.492e-05/0.1347, allocations: 15.86 kB / 353.2 MB, free: 9.691 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.193e-05/0.1348, allocations: 4 kB / 353.2 MB, free: 9.688 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.381e-05/0.1348, allocations: 0 / 353.2 MB, free: 9.688 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.551e-05/0.1348, allocations: 15.92 kB / 353.2 MB, free: 9.672 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 4.628e-05/0.1349, allocations: 33.7 kB / 353.3 MB, free: 9.633 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 9.224e-05/0.135, allocations: 27.94 kB / 353.3 MB, free: 9.605 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.047e-06/0.135, allocations: 4 kB / 353.3 MB, free: 9.602 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.255e-06/0.135, allocations: 0 / 353.3 MB, free: 9.602 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.865e-06/0.135, allocations: 0 / 353.3 MB, free: 9.602 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.000587/0.1356, allocations: 379 kB / 353.7 MB, free: 9.184 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.074e-05/0.1357, allocations: 8.031 kB / 353.7 MB, free: 9.176 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.224e-05/0.1357, allocations: 30.56 kB / 353.7 MB, free: 9.137 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.721e-05/0.1358, allocations: 11.86 kB / 353.7 MB, free: 9.125 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002491/0.136, allocations: 201.4 kB / 353.9 MB, free: 8.891 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.303e-05/0.136, allocations: 4 kB / 353.9 MB, free: 8.887 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.4e-05/0.1361, allocations: 4 kB / 353.9 MB, free: 8.883 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003029/0.1364, allocations: 117.9 kB / 354 MB, free: 8.746 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.835e-06/0.1364, allocations: 0 / 354 MB, free: 8.746 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.328e-05/0.1364, allocations: 7.953 kB / 354.1 MB, free: 8.738 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.815e-06/0.1364, allocations: 4 kB / 354.1 MB, free: 8.734 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.786e-05/0.1365, allocations: 23.92 kB / 354.1 MB, free: 8.711 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003571/0.1369, allocations: 270.7 kB / 354.3 MB, free: 8.391 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001145/0.137, allocations: 71.78 kB / 354.4 MB, free: 8.293 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.845e-05/0.1371, allocations: 38.56 kB / 354.5 MB, free: 8.246 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.803e-05/0.1371, allocations: 11.89 kB / 354.5 MB, free: 8.234 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.06e-05/0.1372, allocations: 34.56 kB / 354.5 MB, free: 8.191 MB / 286.1 MB Notification: Performance of pre-optimization done (n=4): time 1.213e-06/0.1372, allocations: 4 kB / 354.5 MB, free: 8.188 MB / 286.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002724/0.1375, allocations: 85.52 kB / 354.6 MB, free: 8.098 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.992e-05/0.1376, allocations: 110.8 kB / 354.7 MB, free: 7.965 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001299/0.1377, allocations: 138.2 kB / 354.8 MB, free: 7.82 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.582e-05/0.1377, allocations: 33.7 kB / 354.9 MB, free: 7.781 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.025e-05/0.1378, allocations: 88.14 kB / 354.9 MB, free: 7.691 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.552e-05/0.1378, allocations: 7.891 kB / 355 MB, free: 7.684 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.126e-06/0.1378, allocations: 0 / 355 MB, free: 7.684 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001369/0.138, allocations: 314.8 kB / 355.3 MB, free: 7.367 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.212e-05/0.138, allocations: 11.98 kB / 355.3 MB, free: 7.355 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.42e-05/0.1381, allocations: 39.44 kB / 355.3 MB, free: 7.305 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.926e-05/0.1381, allocations: 15.98 kB / 355.3 MB, free: 7.289 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.1382, allocations: 0 / 355.3 MB, free: 7.289 MB / 286.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001376/0.1383, allocations: 81.5 kB / 355.4 MB, free: 7.203 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.724e-05/0.1383, allocations: 4 kB / 355.4 MB, free: 7.199 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.145e-06/0.1383, allocations: 4 kB / 355.4 MB, free: 7.195 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.408e-05/0.1384, allocations: 0 / 355.4 MB, free: 7.195 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.193e-05/0.1384, allocations: 8 kB / 355.4 MB, free: 7.188 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.786e-06/0.1385, allocations: 0 / 355.4 MB, free: 7.188 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.702e-05/0.1385, allocations: 15.83 kB / 355.4 MB, free: 7.172 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.628e-05/0.1385, allocations: 8 kB / 355.4 MB, free: 7.164 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.0001264/0.1387, allocations: 118 kB / 355.6 MB, free: 7.039 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.701e-05/0.1388, allocations: 61.48 kB / 355.6 MB, free: 6.973 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.447e-05/0.1388, allocations: 3.875 kB / 355.6 MB, free: 6.965 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.457e-06/0.1388, allocations: 4 kB / 355.6 MB, free: 6.961 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.669e-06/0.1388, allocations: 0 / 355.6 MB, free: 6.961 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.018e-06/0.1388, allocations: 0 / 355.6 MB, free: 6.961 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000204/0.139, allocations: 181.6 kB / 355.8 MB, free: 6.734 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.213e-06/0.139, allocations: 0 / 355.8 MB, free: 6.734 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.103e-05/0.1391, allocations: 8 kB / 355.8 MB, free: 6.727 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.592e-06/0.1391, allocations: 8.016 kB / 355.8 MB, free: 6.719 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.989e-06/0.1391, allocations: 4 kB / 355.8 MB, free: 6.715 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.569e-06/0.1392, allocations: 7.922 kB / 355.8 MB, free: 6.707 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.51e-07/0.1392, allocations: 0 / 355.8 MB, free: 6.707 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002212/0.1394, allocations: 181.2 kB / 356 MB, free: 6.508 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.076e-05/0.1395, allocations: 97 kB / 356.1 MB, free: 6.395 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.926e-05/0.1395, allocations: 3.953 kB / 356.1 MB, free: 6.391 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.904e-05/0.1396, allocations: 4 kB / 356.1 MB, free: 6.387 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.592e-05/0.1396, allocations: 0 / 356.1 MB, free: 6.387 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.374e-06/0.1396, allocations: 4 kB / 356.1 MB, free: 6.383 MB / 286.1 MB Notification: Performance of sorting global known variables: time 9.826e-05/0.1397, allocations: 117.8 kB / 356.2 MB, free: 6.27 MB / 286.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1398, allocations: 0 / 356.2 MB, free: 6.27 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002251/0.14, allocations: 4 kB / 356.2 MB, free: 6.266 MB / 286.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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.0005842/0.1406, allocations: 0.7202 MB / 357 MB, free: 5.516 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0001557/0.1407, allocations: 39.91 kB / 357 MB, free: 5.477 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.1408, allocations: 0 / 357 MB, free: 5.477 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 3.728e-05/0.1408, allocations: 8 kB / 357 MB, free: 5.469 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004242/0.1412, allocations: 37.52 kB / 357 MB, free: 5.438 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001129/0.1424, allocations: 0.5271 MB / 357.6 MB, free: 4.844 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004429/0.1428, allocations: 0.7003 MB / 358.3 MB, free: 4.117 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 4.056e-05/0.1429, allocations: 4.188 kB / 358.3 MB, free: 4.113 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.088e-05/0.1429, allocations: 15.5 kB / 358.3 MB, free: 4.098 MB / 286.1 MB Notification: Performance of SimCode: time 3.1e-07/0.143, allocations: 0 / 358.3 MB, free: 4.098 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01281/0.1558, allocations: 1.414 MB / 359.7 MB, free: 2.832 MB / 286.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003198/0.1562, allocations: 198.5 kB / 359.9 MB, free: 2.59 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.91/2.066, allocations: 3.938 kB / 359.9 MB, free: 2.586 MB / 286.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SubSample_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SubSample.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample_res.mat does not exist to compare? outputFormat=mat