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.001124/0.001124, allocations: 88.16 kB / 16.31 MB, free: 5.637 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.00153/0.001529, allocations: 177.8 kB / 17.2 MB, free: 5.555 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.584/1.584, allocations: 223.2 MB / 241.2 MB, free: 328 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002826/0.0002827, allocations: 8 kB / 300.9 MB, free: 6.328 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1318/0.1321, allocations: 50.41 MB / 351.3 MB, free: 3.906 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SampleClocked): time 0.002307/0.1345, allocations: 1.194 MB / 352.5 MB, free: 2.699 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004687/0.135, allocations: 148.3 kB / 352.7 MB, free: 2.555 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001142/0.1352, allocations: 4 kB / 352.7 MB, free: 2.551 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 3.265e-05/0.1352, allocations: 0 / 352.7 MB, free: 2.551 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001541/0.1354, allocations: 7.922 kB / 352.7 MB, free: 2.543 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003386/0.1357, allocations: 35.91 kB / 352.7 MB, free: 2.508 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001145/0.1358, allocations: 23.92 kB / 352.7 MB, free: 2.484 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001118/0.136, allocations: 8 kB / 352.8 MB, free: 2.477 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.263e-05/0.136, allocations: 3.938 kB / 352.8 MB, free: 2.473 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.11e-05/0.1361, allocations: 15.92 kB / 352.8 MB, free: 2.457 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.935e-05/0.1361, allocations: 8 kB / 352.8 MB, free: 2.449 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.34e-05/0.1361, allocations: 0 / 352.8 MB, free: 2.449 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.64e-05/0.1362, allocations: 7.938 kB / 352.8 MB, free: 2.441 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 3.808e-05/0.1362, allocations: 29.7 kB / 352.8 MB, free: 2.406 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001013/0.1363, allocations: 23.94 kB / 352.8 MB, free: 2.383 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.272e-06/0.1364, allocations: 0 / 352.8 MB, free: 2.383 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.1364, allocations: 0 / 352.8 MB, free: 2.383 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.454e-06/0.1364, allocations: 4 kB / 352.8 MB, free: 2.379 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.0005163/0.1369, allocations: 363.4 kB / 353.2 MB, free: 1.977 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.68e-05/0.137, allocations: 12.03 kB / 353.2 MB, free: 1.965 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.74e-05/0.137, allocations: 30.56 kB / 353.2 MB, free: 1.926 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.927e-05/0.1371, allocations: 15.8 kB / 353.3 MB, free: 1.91 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002294/0.1373, allocations: 186.9 kB / 353.4 MB, free: 1.688 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.688e-06/0.1373, allocations: 0 / 353.4 MB, free: 1.688 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.095e-05/0.1373, allocations: 4 kB / 353.4 MB, free: 1.684 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002661/0.1376, allocations: 97.05 kB / 353.5 MB, free: 1.57 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.375e-06/0.1376, allocations: 0 / 353.5 MB, free: 1.57 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.235e-06/0.1376, allocations: 0 / 353.5 MB, free: 1.57 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.594e-06/0.1376, allocations: 7.891 kB / 353.5 MB, free: 1.562 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.56e-05/0.1377, allocations: 15.98 kB / 353.6 MB, free: 1.547 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000436/0.1382, allocations: 261.8 kB / 353.8 MB, free: 1.238 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001111/0.1383, allocations: 45.2 kB / 353.9 MB, free: 1.176 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.812e-05/0.1384, allocations: 21.78 kB / 353.9 MB, free: 1.148 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.285e-05/0.1384, allocations: 3.984 kB / 353.9 MB, free: 1.145 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.084e-05/0.1385, allocations: 42.5 kB / 353.9 MB, free: 1.094 MB / 286.1 MB Notification: Performance of pre-optimization done (n=2): time 9.91e-07/0.1385, allocations: 0 / 353.9 MB, free: 1.094 MB / 286.1 MB Notification: Performance of matching and sorting (n=2): time 0.000331/0.1388, allocations: 77.47 kB / 354 MB, free: 1.012 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.375e-05/0.1389, allocations: 77.36 kB / 354.1 MB, free: 0.918 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001528/0.1391, allocations: 134.1 kB / 354.2 MB, free: 0.7734 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.648e-05/0.1391, allocations: 25.7 kB / 354.2 MB, free: 0.7422 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.713e-05/0.1392, allocations: 92.12 kB / 354.3 MB, free: 0.6484 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.348e-05/0.1392, allocations: 0 / 354.3 MB, free: 0.6484 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.656e-06/0.1392, allocations: 3.938 kB / 354.3 MB, free: 0.6445 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001495/0.1393, allocations: 314.8 kB / 354.6 MB, free: 336 kB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.19e-05/0.1394, allocations: 11.98 kB / 354.7 MB, free: 324 kB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.162e-05/0.1394, allocations: 21.72 kB / 354.7 MB, free: 296 kB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.228e-05/0.1395, allocations: 11.98 kB / 354.7 MB, free: 284 kB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.1395, allocations: 0 / 354.7 MB, free: 284 kB / 286.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001226/0.1396, allocations: 57.62 kB / 354.7 MB, free: 220 kB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.643e-05/0.1397, allocations: 12.03 kB / 354.8 MB, free: 208 kB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.497e-06/0.1397, allocations: 3.953 kB / 354.8 MB, free: 204 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.738e-05/0.1397, allocations: 0 / 354.8 MB, free: 204 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.897e-05/0.1398, allocations: 4 kB / 354.8 MB, free: 200 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.066e-05/0.1398, allocations: 4 kB / 354.8 MB, free: 196 kB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.42e-05/0.1399, allocations: 3.984 kB / 354.8 MB, free: 192 kB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.748e-06/0.1399, allocations: 4 kB / 354.8 MB, free: 188 kB / 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 0.0001415/0.14, allocations: 113.8 kB / 354.9 MB, free: 64 kB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.343e-05/0.1401, allocations: 41.55 kB / 354.9 MB, free: 16 kB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.718e-05/0.1402, allocations: 15.91 kB / 354.9 MB, free: 15.99 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.879e-06/0.1402, allocations: 3.953 kB / 354.9 MB, free: 15.99 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.853e-06/0.1402, allocations: 0 / 354.9 MB, free: 15.99 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.497e-06/0.1402, allocations: 4 kB / 354.9 MB, free: 15.98 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002186/0.1404, allocations: 165.6 kB / 355.1 MB, free: 15.78 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.893e-06/0.1405, allocations: 0 / 355.1 MB, free: 15.78 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.192e-05/0.1405, allocations: 4 kB / 355.1 MB, free: 15.77 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.923e-06/0.1405, allocations: 4 kB / 355.1 MB, free: 15.77 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.736e-06/0.1405, allocations: 4.031 kB / 355.1 MB, free: 15.77 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.753e-06/0.1405, allocations: 0 / 355.1 MB, free: 15.77 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.216e-06/0.1405, allocations: 3.953 kB / 355.1 MB, free: 15.76 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002225/0.1408, allocations: 160.3 kB / 355.3 MB, free: 15.59 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.041e-05/0.1409, allocations: 100.9 kB / 355.4 MB, free: 15.47 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.85e-05/0.1409, allocations: 8.031 kB / 355.4 MB, free: 15.46 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.51e-05/0.141, allocations: 0 / 355.4 MB, free: 15.46 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.069e-05/0.141, allocations: 7.953 kB / 355.4 MB, free: 15.45 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.059e-06/0.141, allocations: 0 / 355.4 MB, free: 15.45 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001003/0.1411, allocations: 110.8 kB / 355.5 MB, free: 15.35 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1412, allocations: 0 / 355.5 MB, free: 15.35 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002606/0.1414, allocations: 0 / 355.5 MB, free: 15.35 MB / 302.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.000702/0.1421, allocations: 0.6975 MB / 356.2 MB, free: 14.62 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001581/0.1423, allocations: 24.08 kB / 356.2 MB, free: 14.6 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.946e-06/0.1423, allocations: 0 / 356.2 MB, free: 14.6 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.611e-05/0.1424, allocations: 15.98 kB / 356.2 MB, free: 14.58 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004606/0.1428, allocations: 7.969 kB / 356.2 MB, free: 14.57 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001047/0.1439, allocations: 448.3 kB / 356.7 MB, free: 14.08 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004864/0.1444, allocations: 0.6848 MB / 357.4 MB, free: 13.37 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.589e-05/0.1444, allocations: 8 kB / 357.4 MB, free: 13.36 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.569e-05/0.1445, allocations: 11.44 kB / 357.4 MB, free: 13.35 MB / 302.1 MB Notification: Performance of SimCode: time 9.12e-07/0.1445, allocations: 0 / 357.4 MB, free: 13.35 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01372/0.1582, allocations: 1.157 MB / 358.5 MB, free: 12.37 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001957/0.1585, allocations: 211.8 kB / 358.8 MB, free: 12.12 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.876/2.034, allocations: 0 / 358.8 MB, free: 12.12 MB / 302.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