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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.000891/0.000891, allocations: 177.1 kB / 8.35 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.487/1.487, allocations: 221.5 MB / 230.3 MB, free: 7.523 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008713/0.0008712, allocations: 85.86 kB / 281.2 MB, free: 5.27 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.933e-05/1.96e-05, allocations: 4 kB / 337.1 MB, free: 9.922 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1064/0.1064, allocations: 50.41 MB / 387.6 MB, free: 7.477 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3167/0.4232, allocations: 75.61 MB / 463.2 MB, free: 3.129 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002345/0.4235, allocations: 79.94 kB / 463.2 MB, free: 3.051 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.002852/0.4264, allocations: 1.103 MB / 464.3 MB, free: 1.953 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.193e-06/0.4264, allocations: 0 / 464.3 MB, free: 1.953 MB / 330.7 MB Notification: Performance of Transformations before backend: time 8.195e-06/0.4264, allocations: 0 / 464.3 MB, free: 1.953 MB / 330.7 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.0003195/0.4267, allocations: 343.2 kB / 464.7 MB, free: 1.574 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.2e-05/0.4268, allocations: 8.031 kB / 464.7 MB, free: 1.566 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.346e-05/0.4268, allocations: 11.86 kB / 464.7 MB, free: 1.555 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002/0.427, allocations: 179 kB / 464.9 MB, free: 1.34 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.057e-05/0.4271, allocations: 7.938 kB / 464.9 MB, free: 1.332 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.001e-05/0.4271, allocations: 0 / 464.9 MB, free: 1.332 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 6.8e-05/0.4272, allocations: 15.94 kB / 464.9 MB, free: 1.32 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001614/0.4273, allocations: 77.06 kB / 465 MB, free: 1.227 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.221e-06/0.4273, allocations: 0 / 465 MB, free: 1.227 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.598e-06/0.4274, allocations: 0 / 465 MB, free: 1.227 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.192e-06/0.4274, allocations: 7.953 kB / 465 MB, free: 1.219 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003013/0.4277, allocations: 250.3 kB / 465.2 MB, free: 0.9336 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.857e-05/0.4277, allocations: 37.09 kB / 465.3 MB, free: 0.8789 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.9e-05/0.4278, allocations: 21.84 kB / 465.3 MB, free: 0.8516 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.631e-05/0.4278, allocations: 0 / 465.3 MB, free: 0.8516 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.631e-05/0.4278, allocations: 30.56 kB / 465.3 MB, free: 0.8125 MB / 330.7 MB Notification: Performance of pre-optimization done (n=2): time 8.91e-07/0.4278, allocations: 0 / 465.3 MB, free: 0.8125 MB / 330.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001272/0.428, allocations: 45.58 kB / 465.4 MB, free: 0.7617 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.47e-05/0.428, allocations: 85.11 kB / 465.4 MB, free: 0.6602 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001025/0.4281, allocations: 120.3 kB / 465.6 MB, free: 0.5352 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.171e-05/0.4281, allocations: 25.7 kB / 465.6 MB, free: 0.5039 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.889e-05/0.4282, allocations: 92.05 kB / 465.7 MB, free: 420 kB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.152e-06/0.4282, allocations: 0 / 465.7 MB, free: 420 kB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.715e-06/0.4282, allocations: 0 / 465.7 MB, free: 420 kB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001147/0.4283, allocations: 314.8 kB / 466 MB, free: 96 kB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.104e-05/0.4284, allocations: 4 kB / 466 MB, free: 92 kB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.498e-05/0.4284, allocations: 13.72 kB / 466 MB, free: 72 kB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.279e-05/0.4284, allocations: 9.094 kB / 466 MB, free: 64 kB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.222e-06/0.4284, allocations: 0 / 466 MB, free: 64 kB / 330.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 5.655e-05/0.4285, allocations: 41.62 kB / 466 MB, free: 16 kB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.21e-05/0.4285, allocations: 5.094 kB / 466.1 MB, free: 12 kB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.008e-06/0.4285, allocations: 4 kB / 466.1 MB, free: 8 kB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.132e-05/0.4285, allocations: 0 / 466.1 MB, free: 8 kB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.874e-05/0.4286, allocations: 11.98 kB / 466.1 MB, free: 15.99 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.891e-06/0.4286, allocations: 4.016 kB / 466.1 MB, free: 15.99 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.839e-05/0.4286, allocations: 8 kB / 466.1 MB, free: 15.98 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.899e-06/0.4286, allocations: 0 / 466.1 MB, free: 15.98 MB / 346.7 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 (sample1.u,sample1.y) * Number of discrete 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 6.409e-05/0.4287, allocations: 105 kB / 466.2 MB, free: 15.87 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 6.82e-05/0.4288, allocations: 53.42 kB / 466.2 MB, free: 15.82 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.238e-05/0.4288, allocations: 3.906 kB / 466.2 MB, free: 15.81 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.022e-05/0.4289, allocations: 11.97 kB / 466.3 MB, free: 15.8 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.056e-06/0.4289, allocations: 3.953 kB / 466.3 MB, free: 15.8 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.899e-06/0.4289, allocations: 8.047 kB / 466.3 MB, free: 15.79 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.426e-06/0.4289, allocations: 4 kB / 466.3 MB, free: 15.79 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001319/0.429, allocations: 138.2 kB / 466.4 MB, free: 15.61 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.429, allocations: 0 / 466.4 MB, free: 15.61 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.769e-05/0.4291, allocations: 4 kB / 466.4 MB, free: 15.61 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.717e-06/0.4291, allocations: 3.984 kB / 466.4 MB, free: 15.61 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.703e-06/0.4291, allocations: 4 kB / 466.4 MB, free: 15.6 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.292e-06/0.4291, allocations: 0 / 466.4 MB, free: 15.6 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/0.4291, allocations: 0 / 466.4 MB, free: 15.6 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001098/0.4292, allocations: 165.9 kB / 466.6 MB, free: 15.41 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.771e-05/0.4293, allocations: 85.09 kB / 466.7 MB, free: 15.31 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.339e-05/0.4293, allocations: 1.625 kB / 466.7 MB, free: 15.31 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.02e-05/0.4294, allocations: 7.984 kB / 466.7 MB, free: 15.3 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.345e-05/0.4294, allocations: 3.953 kB / 466.7 MB, free: 15.3 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.865e-06/0.4294, allocations: 0 / 466.7 MB, free: 15.3 MB / 346.7 MB Notification: Performance of sorting global known variables: time 6.025e-05/0.4295, allocations: 110 kB / 466.8 MB, free: 15.2 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4295, allocations: 0 / 466.8 MB, free: 15.2 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002051/0.4297, allocations: 4 kB / 466.8 MB, free: 15.19 MB / 346.7 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 (sample1.u,sample1.y) * Number of discrete 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.0003966/0.4301, allocations: 0.7603 MB / 467.5 MB, free: 14.4 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 6.41e-05/0.4302, allocations: 4 kB / 467.5 MB, free: 14.39 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.814e-06/0.4302, allocations: 3.938 kB / 467.6 MB, free: 14.39 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 1.297e-05/0.4302, allocations: 8 kB / 467.6 MB, free: 14.38 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000239/0.4304, allocations: 14.41 kB / 467.6 MB, free: 14.37 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003491/0.4308, allocations: 126.2 kB / 467.7 MB, free: 14.21 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000287/0.4311, allocations: 0.6926 MB / 468.4 MB, free: 13.49 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 2.221e-05/0.4311, allocations: 3.984 kB / 468.4 MB, free: 13.48 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.214e-05/0.4312, allocations: 15.44 kB / 468.4 MB, free: 13.47 MB / 346.7 MB Notification: Performance of SimCode: time 2.7e-07/0.4312, allocations: 0 / 468.4 MB, free: 13.47 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01775/0.4489, allocations: 0.8182 MB / 469.2 MB, free: 12.66 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001856/0.4492, allocations: 159.6 kB / 469.4 MB, free: 12.47 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.379/1.829, allocations: 0 / 469.4 MB, free: 12.47 MB / 346.7 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