Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SuperSample.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.ClockSignals.SuperSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_ClockSignals_SuperSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.ClockSignals.SuperSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_ClockSignals_SuperSample",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.0009881/0.0009882, allocations: 96.89 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.0009389/0.000939, allocations: 181.7 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.375/1.375, allocations: 223.2 MB / 241.1 MB, free: 5.469 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003382/0.0003383, allocations: 8.062 kB / 300.8 MB, free: 5.965 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1366/0.1369, allocations: 50.43 MB / 351.2 MB, free: 11.65 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.ClockSignals.SuperSample): time 0.002282/0.1393, allocations: 1.244 MB / 352.5 MB, free: 10.4 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001043/0.1403, allocations: 467.2 kB / 352.9 MB, free: 9.938 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001153/0.1405, allocations: 7.938 kB / 352.9 MB, free: 9.93 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 4.28e-05/0.1405, allocations: 0 / 352.9 MB, free: 9.93 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001636/0.1407, allocations: 15.92 kB / 353 MB, free: 9.914 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003205/0.1411, allocations: 35.89 kB / 353 MB, free: 9.879 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001086/0.1412, allocations: 35.89 kB / 353 MB, free: 9.844 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001176/0.1413, allocations: 11.94 kB / 353 MB, free: 9.832 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.464e-05/0.1414, allocations: 19.92 kB / 353.1 MB, free: 9.812 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.006e-05/0.1415, allocations: 23.84 kB / 353.1 MB, free: 9.789 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.787e-05/0.1415, allocations: 4 kB / 353.1 MB, free: 9.785 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.36e-05/0.1415, allocations: 0 / 353.1 MB, free: 9.785 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.014e-05/0.1416, allocations: 8 kB / 353.1 MB, free: 9.777 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 3.619e-05/0.1416, allocations: 33.64 kB / 353.1 MB, free: 9.738 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001068/0.1417, allocations: 35.94 kB / 353.2 MB, free: 9.703 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.347e-06/0.1417, allocations: 0 / 353.2 MB, free: 9.703 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.274e-06/0.1417, allocations: 0 / 353.2 MB, free: 9.703 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.039e-06/0.1418, allocations: 0 / 353.2 MB, free: 9.703 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.0006028/0.1424, allocations: 371 kB / 353.5 MB, free: 9.293 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.839e-05/0.1424, allocations: 15.97 kB / 353.5 MB, free: 9.277 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.081e-05/0.1425, allocations: 38.5 kB / 353.6 MB, free: 9.23 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.982e-05/0.1426, allocations: 7.906 kB / 353.6 MB, free: 9.223 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002612/0.1428, allocations: 190.8 kB / 353.8 MB, free: 8.996 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.071e-05/0.1429, allocations: 0 / 353.8 MB, free: 8.996 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.688e-05/0.1429, allocations: 4 kB / 353.8 MB, free: 8.992 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003794/0.1433, allocations: 109 kB / 353.9 MB, free: 8.867 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.065e-05/0.1433, allocations: 3.953 kB / 353.9 MB, free: 8.863 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.075e-05/0.1433, allocations: 0 / 353.9 MB, free: 8.863 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.235e-05/0.1433, allocations: 4 kB / 353.9 MB, free: 8.859 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000112/0.1435, allocations: 19.98 kB / 353.9 MB, free: 8.84 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004433/0.1439, allocations: 261.8 kB / 354.2 MB, free: 8.531 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001246/0.1441, allocations: 49.2 kB / 354.2 MB, free: 8.465 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.859e-05/0.1441, allocations: 7.891 kB / 354.2 MB, free: 8.457 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.824e-05/0.1441, allocations: 38.62 kB / 354.3 MB, free: 8.41 MB / 286.1 MB Notification: Performance of pre-optimization done (n=2): time 1.854e-06/0.1442, allocations: 0 / 354.3 MB, free: 8.41 MB / 286.1 MB Notification: Performance of matching and sorting (n=2): time 0.0003395/0.1445, allocations: 77.52 kB / 354.3 MB, free: 8.328 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.111e-05/0.1446, allocations: 77.11 kB / 354.4 MB, free: 8.234 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001718/0.1448, allocations: 136.9 kB / 354.5 MB, free: 8.09 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.893e-05/0.1448, allocations: 29.95 kB / 354.6 MB, free: 8.055 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.06e-05/0.1449, allocations: 92.12 kB / 354.7 MB, free: 7.961 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.028e-05/0.1449, allocations: 4 kB / 354.7 MB, free: 7.957 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.238e-06/0.1449, allocations: 3.938 kB / 354.7 MB, free: 7.953 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001648/0.1451, allocations: 310.8 kB / 355 MB, free: 7.641 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.819e-05/0.1452, allocations: 11.98 kB / 355 MB, free: 7.629 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.707e-05/0.1453, allocations: 25.72 kB / 355 MB, free: 7.598 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.959e-05/0.1453, allocations: 11.98 kB / 355 MB, free: 7.586 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.1453, allocations: 0 / 355 MB, free: 7.586 MB / 286.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001793/0.1455, allocations: 65.48 kB / 355.1 MB, free: 7.516 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.085e-05/0.1456, allocations: 4 kB / 355.1 MB, free: 7.512 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.66e-06/0.1456, allocations: 4.125 kB / 355.1 MB, free: 7.508 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.518e-05/0.1456, allocations: 4 kB / 355.1 MB, free: 7.504 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.553e-05/0.1457, allocations: 7.984 kB / 355.1 MB, free: 7.496 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.942e-06/0.1457, allocations: 0 / 355.1 MB, free: 7.496 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.211e-05/0.1458, allocations: 4 kB / 355.1 MB, free: 7.492 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.197e-06/0.1458, allocations: 0 / 355.1 MB, free: 7.492 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.0001149/0.1459, allocations: 121.8 kB / 355.2 MB, free: 7.363 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.261e-05/0.146, allocations: 45.56 kB / 355.3 MB, free: 7.312 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.961e-05/0.1461, allocations: 11.91 kB / 355.3 MB, free: 7.297 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.465e-06/0.1461, allocations: 0 / 355.3 MB, free: 7.297 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.999e-06/0.1461, allocations: 0 / 355.3 MB, free: 7.297 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.707e-06/0.1461, allocations: 0 / 355.3 MB, free: 7.297 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002595/0.1464, allocations: 181.6 kB / 355.5 MB, free: 7.07 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.1464, allocations: 0 / 355.5 MB, free: 7.07 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.02e-05/0.1465, allocations: 7.984 kB / 355.5 MB, free: 7.062 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.696e-06/0.1465, allocations: 7.953 kB / 355.5 MB, free: 7.055 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.526e-06/0.1465, allocations: 0 / 355.5 MB, free: 7.055 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.713e-06/0.1465, allocations: 0 / 355.5 MB, free: 7.055 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.1465, allocations: 4 kB / 355.5 MB, free: 7.051 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002505/0.1468, allocations: 178 kB / 355.7 MB, free: 6.852 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.614e-05/0.1469, allocations: 96.95 kB / 355.8 MB, free: 6.738 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.971e-05/0.1469, allocations: 0 / 355.8 MB, free: 6.738 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000105/0.147, allocations: 8.031 kB / 355.8 MB, free: 6.73 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.784e-05/0.1471, allocations: 0 / 355.8 MB, free: 6.73 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.028e-06/0.1471, allocations: 0 / 355.8 MB, free: 6.73 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001094/0.1472, allocations: 111.2 kB / 355.9 MB, free: 6.621 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.1472, allocations: 0 / 355.9 MB, free: 6.621 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003772/0.1476, allocations: 4 kB / 355.9 MB, free: 6.617 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.0006143/0.1482, allocations: 0.7797 MB / 356.7 MB, free: 5.805 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0001735/0.1484, allocations: 32.08 kB / 356.7 MB, free: 5.773 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.1484, allocations: 0 / 356.7 MB, free: 5.773 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 5.593e-05/0.1485, allocations: 11.98 kB / 356.7 MB, free: 5.762 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003793/0.1489, allocations: 21.62 kB / 356.7 MB, free: 5.742 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00122/0.1501, allocations: 0.6279 MB / 357.3 MB, free: 5.055 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003708/0.1505, allocations: 0.6965 MB / 358 MB, free: 4.332 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 4.003e-05/0.1505, allocations: 4 kB / 358 MB, free: 4.328 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.28e-05/0.1506, allocations: 11.5 kB / 358.1 MB, free: 4.316 MB / 286.1 MB Notification: Performance of SimCode: time 3.61e-07/0.1506, allocations: 0 / 358.1 MB, free: 4.316 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01518/0.1658, allocations: 1.286 MB / 359.3 MB, free: 3.18 MB / 286.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002806/0.1661, allocations: 194 kB / 359.5 MB, free: 2.945 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.684/1.851, allocations: 4.062 kB / 359.5 MB, free: 2.941 MB / 286.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SuperSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SuperSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SuperSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SuperSample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SuperSample_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_ClockSignals_SuperSample_fmu --startTime=0 --stopTime=0.08 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_ClockSignals_SuperSample.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SuperSample.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.ClockSignals.SuperSample_res.mat does not exist to compare? outputFormat=mat