Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.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.IntegerSignals.SampleClocked,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_SampleClocked",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_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.001109/0.001109, allocations: 94.11 kB / 16.3 MB, free: 5.996 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.001049/0.001049, allocations: 181.3 kB / 17.2 MB, free: 5.914 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.52/1.52, allocations: 223.2 MB / 241.1 MB, free: 5.461 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003061/0.0003062, allocations: 6.531 kB / 300.8 MB, free: 6.02 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1426/0.143, allocations: 50.43 MB / 351.2 MB, free: 11.63 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked): time 0.002346/0.1454, allocations: 1.209 MB / 352.4 MB, free: 10.41 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004085/0.1458, allocations: 131.6 kB / 352.6 MB, free: 10.28 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.032e-05/0.1459, allocations: 0 / 352.6 MB, free: 10.28 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 3.813e-05/0.146, allocations: 11.92 kB / 352.6 MB, free: 10.27 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000114/0.1461, allocations: 0 / 352.6 MB, free: 10.27 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000254/0.1464, allocations: 31.91 kB / 352.6 MB, free: 10.24 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 8.633e-05/0.1465, allocations: 19.92 kB / 352.6 MB, free: 10.22 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.881e-05/0.1466, allocations: 15.92 kB / 352.6 MB, free: 10.2 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.899e-05/0.1466, allocations: 7.938 kB / 352.7 MB, free: 10.2 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.987e-05/0.1467, allocations: 15.92 kB / 352.7 MB, free: 10.18 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.654e-05/0.1467, allocations: 0 / 352.7 MB, free: 10.18 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.357e-05/0.1467, allocations: 3.938 kB / 352.7 MB, free: 10.18 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 2.876e-05/0.1467, allocations: 8 kB / 352.7 MB, free: 10.17 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 2.854e-05/0.1468, allocations: 37.64 kB / 352.7 MB, free: 10.12 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 7.11e-05/0.1469, allocations: 23.94 kB / 352.7 MB, free: 10.1 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.945e-06/0.1469, allocations: 0 / 352.7 MB, free: 10.1 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.374e-06/0.1469, allocations: 0 / 352.7 MB, free: 10.1 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.26e-06/0.1469, allocations: 0 / 352.7 MB, free: 10.1 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.0004679/0.1474, allocations: 351.2 kB / 353.1 MB, free: 9.711 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.412e-05/0.1474, allocations: 8.031 kB / 353.1 MB, free: 9.703 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.978e-05/0.1475, allocations: 34.56 kB / 353.1 MB, free: 9.66 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.157e-05/0.1475, allocations: 15.86 kB / 353.1 MB, free: 9.645 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002075/0.1477, allocations: 182.9 kB / 353.3 MB, free: 9.426 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.355e-05/0.1477, allocations: 8 kB / 353.3 MB, free: 9.418 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.036e-05/0.1477, allocations: 0 / 353.3 MB, free: 9.418 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002549/0.148, allocations: 89.05 kB / 353.4 MB, free: 9.312 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.746e-06/0.148, allocations: 7.938 kB / 353.4 MB, free: 9.305 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.126e-06/0.148, allocations: 0 / 353.4 MB, free: 9.305 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.019e-05/0.1481, allocations: 3.953 kB / 353.4 MB, free: 9.301 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.645e-05/0.1481, allocations: 19.98 kB / 353.4 MB, free: 9.281 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003582/0.1485, allocations: 253.8 kB / 353.7 MB, free: 8.98 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.974e-05/0.1486, allocations: 49.16 kB / 353.7 MB, free: 8.914 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.018e-05/0.1486, allocations: 3.984 kB / 353.7 MB, free: 8.91 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.373e-05/0.1487, allocations: 30.62 kB / 353.8 MB, free: 8.871 MB / 286.1 MB Notification: Performance of pre-optimization done (n=2): time 1.222e-06/0.1487, allocations: 4 kB / 353.8 MB, free: 8.867 MB / 286.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002499/0.1489, allocations: 73.58 kB / 353.9 MB, free: 8.789 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.922e-05/0.149, allocations: 85.09 kB / 353.9 MB, free: 8.688 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001448/0.1491, allocations: 132.4 kB / 354.1 MB, free: 8.547 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.755e-05/0.1492, allocations: 33.64 kB / 354.1 MB, free: 8.508 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.085e-05/0.1492, allocations: 84.14 kB / 354.2 MB, free: 8.422 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.598e-06/0.1493, allocations: 160 / 354.2 MB, free: 8.422 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.965e-06/0.1493, allocations: 4 kB / 354.2 MB, free: 8.418 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001864/0.1495, allocations: 318.8 kB / 354.5 MB, free: 8.098 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.888e-05/0.1495, allocations: 7.984 kB / 354.5 MB, free: 8.09 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.018e-05/0.1495, allocations: 17.72 kB / 354.5 MB, free: 8.066 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.378e-05/0.1496, allocations: 20.05 kB / 354.5 MB, free: 8.047 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.1496, allocations: 0 / 354.5 MB, free: 8.047 MB / 286.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001121/0.1497, allocations: 61.53 kB / 354.6 MB, free: 7.98 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.53e-05/0.1497, allocations: 4 kB / 354.6 MB, free: 7.977 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.42e-06/0.1498, allocations: 0 / 354.6 MB, free: 7.977 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.411e-05/0.1498, allocations: 3.953 kB / 354.6 MB, free: 7.973 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.549e-05/0.1499, allocations: 15.98 kB / 354.6 MB, free: 7.957 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.512e-06/0.1499, allocations: 4.062 kB / 354.6 MB, free: 7.953 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.924e-05/0.1499, allocations: 7.938 kB / 354.6 MB, free: 7.945 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.302e-06/0.1499, allocations: 0 / 354.6 MB, free: 7.945 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: 2 (step.y,sample1.y) * 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 9.619e-05/0.15, allocations: 109.8 kB / 354.7 MB, free: 7.828 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.901e-05/0.1501, allocations: 45.67 kB / 354.8 MB, free: 7.777 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.185e-05/0.1501, allocations: 3.875 kB / 354.8 MB, free: 7.77 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.528e-06/0.1501, allocations: 7.953 kB / 354.8 MB, free: 7.762 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5e-06/0.1502, allocations: 7.875 kB / 354.8 MB, free: 7.754 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.436e-06/0.1502, allocations: 4.031 kB / 354.8 MB, free: 7.75 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001864/0.1504, allocations: 173.5 kB / 355 MB, free: 7.531 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.1504, allocations: 0 / 355 MB, free: 7.531 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.923e-05/0.1504, allocations: 8 kB / 355 MB, free: 7.523 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.285e-06/0.1504, allocations: 0 / 355 MB, free: 7.523 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.953e-06/0.1504, allocations: 0 / 355 MB, free: 7.523 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.163e-06/0.1504, allocations: 0 / 355 MB, free: 7.523 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.466e-06/0.1504, allocations: 3.953 kB / 355 MB, free: 7.52 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001688/0.1506, allocations: 174.1 kB / 355.2 MB, free: 7.324 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.892e-05/0.1507, allocations: 89 kB / 355.2 MB, free: 7.219 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.296e-05/0.1507, allocations: 0 / 355.2 MB, free: 7.219 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.398e-05/0.1508, allocations: 11.95 kB / 355.3 MB, free: 7.207 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.055e-05/0.1508, allocations: 3.969 kB / 355.3 MB, free: 7.203 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.735e-06/0.1508, allocations: 4 kB / 355.3 MB, free: 7.199 MB / 286.1 MB Notification: Performance of sorting global known variables: time 5.997e-05/0.1509, allocations: 105.2 kB / 355.4 MB, free: 7.098 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1509, allocations: 0 / 355.4 MB, free: 7.098 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002147/0.1511, allocations: 8 kB / 355.4 MB, free: 7.09 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: 2 (step.y,sample1.y) * 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.000455/0.1516, allocations: 0.772 MB / 356.1 MB, free: 6.285 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0001255/0.1517, allocations: 23.92 kB / 356.2 MB, free: 6.262 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.1517, allocations: 0 / 356.2 MB, free: 6.262 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 3.393e-05/0.1518, allocations: 12.16 kB / 356.2 MB, free: 6.25 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002698/0.152, allocations: 20.72 kB / 356.2 MB, free: 6.23 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008017/0.1528, allocations: 0.577 MB / 356.8 MB, free: 5.598 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003012/0.1532, allocations: 0.6887 MB / 357.5 MB, free: 4.883 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 2.102e-05/0.1532, allocations: 3.938 kB / 357.5 MB, free: 4.879 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.865e-05/0.1532, allocations: 23.42 kB / 357.5 MB, free: 4.855 MB / 286.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1532, allocations: 0 / 357.5 MB, free: 4.855 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01178/0.165, allocations: 1.139 MB / 358.6 MB, free: 3.887 MB / 286.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000201/0.1653, allocations: 201.4 kB / 358.8 MB, free: 3.645 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.902/2.068, allocations: 3.938 kB / 358.8 MB, free: 3.641 MB / 286.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_SampleClocked_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_SampleClocked.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked_res.mat does not exist to compare? outputFormat=mat