Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.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.Blocks.Examples.ShowLogicalSources,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_ShowLogicalSources",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.ShowLogicalSources,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_ShowLogicalSources",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.001123/0.001123, allocations: 174.4 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.434/1.434, allocations: 221.4 MB / 235.5 MB, free: 2.953 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.0008705/0.0008704, allocations: 88 kB / 286.5 MB, free: 232 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.148e-05/3.163e-05, allocations: 4 kB / 343.9 MB, free: 4.23 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1142/0.1142, allocations: 50.41 MB / 394.3 MB, free: 1.781 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3428/0.4571, allocations: 80.54 MB / 474.9 MB, free: 6.938 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001995/0.4574, allocations: 67.97 kB / 474.9 MB, free: 6.871 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0163/0.4737, allocations: 5.852 MB / 480.8 MB, free: 1.027 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.192e-06/0.4737, allocations: 0 / 480.8 MB, free: 1.027 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.629e-05/0.4737, allocations: 4 kB / 480.8 MB, free: 1.023 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0006405/0.4744, allocations: 496.5 kB / 481.3 MB, free: 500 kB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.086e-05/0.4744, allocations: 8.031 kB / 481.3 MB, free: 492 kB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.989e-05/0.4745, allocations: 42.55 kB / 481.3 MB, free: 440 kB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.777e-05/0.4745, allocations: 19.77 kB / 481.3 MB, free: 420 kB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000383/0.4749, allocations: 261.7 kB / 481.6 MB, free: 116 kB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.829e-05/0.475, allocations: 4 kB / 481.6 MB, free: 112 kB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.664e-05/0.475, allocations: 11.98 kB / 481.6 MB, free: 100 kB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002129/0.4752, allocations: 110 kB / 481.7 MB, free: 15.97 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.975e-06/0.4752, allocations: 0 / 481.7 MB, free: 15.97 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.71e-05/0.4753, allocations: 4 kB / 481.7 MB, free: 15.96 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.003e-06/0.4753, allocations: 7.891 kB / 481.7 MB, free: 15.96 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001003/0.4754, allocations: 43.98 kB / 481.8 MB, free: 15.91 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006614/0.476, allocations: 0.6145 MB / 482.4 MB, free: 15.24 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001881/0.4762, allocations: 127.9 kB / 482.5 MB, free: 15.09 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.29e-05/0.4763, allocations: 46.7 kB / 482.6 MB, free: 15.03 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.85e-05/0.4764, allocations: 0 / 482.6 MB, free: 15.03 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001719/0.4766, allocations: 125.8 kB / 482.7 MB, free: 14.89 MB / 362.7 MB Notification: Performance of pre-optimization done (n=12): time 1.323e-06/0.4766, allocations: 4 kB / 482.7 MB, free: 14.88 MB / 362.7 MB Notification: Performance of matching and sorting (n=12): time 0.0002941/0.4769, allocations: 141.3 kB / 482.8 MB, free: 14.74 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.57e-05/0.477, allocations: 132.5 kB / 483 MB, free: 14.58 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002851/0.4772, allocations: 265 kB / 483.2 MB, free: 14.31 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.973e-05/0.4773, allocations: 25.7 kB / 483.2 MB, free: 14.28 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.817e-05/0.4774, allocations: 124.4 kB / 483.4 MB, free: 14.15 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.845e-05/0.4774, allocations: 31.7 kB / 483.4 MB, free: 14.12 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.554e-06/0.4774, allocations: 4 kB / 483.4 MB, free: 14.12 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001254/0.4776, allocations: 330.9 kB / 483.7 MB, free: 13.79 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.433e-05/0.4776, allocations: 28 kB / 483.7 MB, free: 13.76 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.895e-05/0.4777, allocations: 78 kB / 483.8 MB, free: 13.66 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001019/0.4778, allocations: 36.02 kB / 483.9 MB, free: 13.62 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.834e-06/0.4778, allocations: 0 / 483.9 MB, free: 13.62 MB / 362.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002031/0.478, allocations: 133.3 kB / 484 MB, free: 13.49 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.877e-05/0.4781, allocations: 11.95 kB / 484 MB, free: 13.48 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.61e-06/0.4781, allocations: 0 / 484 MB, free: 13.48 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.422e-05/0.4781, allocations: 4 kB / 484 MB, free: 13.47 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.026e-05/0.4782, allocations: 19.92 kB / 484 MB, free: 13.45 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.024e-06/0.4782, allocations: 0 / 484 MB, free: 13.45 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001155/0.4783, allocations: 24.08 kB / 484 MB, free: 13.43 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.343e-05/0.4784, allocations: 4 kB / 484.1 MB, free: 13.43 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 13 ($whenCondition2,$PRE.table.combiTimeTable.nextTimeEvent,table.y,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,$whenCondition1,step.y,pulse.y,$PRE.pulse.pulseStart,pulse.pulseStart,booleanExpression.y,sample.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 15 * 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 8.917e-05/0.4784, allocations: 112.8 kB / 484.2 MB, free: 13.31 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.619e-05/0.4785, allocations: 23.72 kB / 484.2 MB, free: 13.29 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002071/0.4787, allocations: 115.4 kB / 484.3 MB, free: 13.17 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.078e-06/0.4787, allocations: 4 kB / 484.3 MB, free: 13.16 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.739e-06/0.4787, allocations: 256 / 484.3 MB, free: 13.16 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.228e-06/0.4787, allocations: 4 kB / 484.3 MB, free: 13.16 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002288/0.479, allocations: 257.5 kB / 484.6 MB, free: 12.86 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.377e-06/0.479, allocations: 4 kB / 484.6 MB, free: 12.86 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.385e-05/0.479, allocations: 7.984 kB / 484.6 MB, free: 12.85 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.545e-06/0.479, allocations: 0 / 484.6 MB, free: 12.85 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.296e-05/0.479, allocations: 4 kB / 484.6 MB, free: 12.84 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.216e-06/0.4791, allocations: 3.953 kB / 484.6 MB, free: 12.84 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.73e-06/0.4791, allocations: 7.938 kB / 484.6 MB, free: 12.83 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002596/0.4793, allocations: 205.9 kB / 484.8 MB, free: 12.59 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.15e-05/0.4794, allocations: 104.9 kB / 484.9 MB, free: 12.47 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.527e-05/0.4795, allocations: 7.984 kB / 484.9 MB, free: 12.46 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001088/0.4796, allocations: 19.98 kB / 484.9 MB, free: 12.45 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.924e-05/0.4797, allocations: 11.98 kB / 484.9 MB, free: 12.43 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.322e-05/0.4797, allocations: 4 kB / 484.9 MB, free: 12.43 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002108/0.4799, allocations: 217.3 kB / 485.1 MB, free: 12.21 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.2e-07/0.4799, allocations: 0 / 485.1 MB, free: 12.21 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000255/0.4802, allocations: 40 kB / 485.2 MB, free: 12.18 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition2,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,$whenCondition1,step.y,pulse.y,pulse.pulseStart,booleanExpression.y,sample.y) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.001337/0.4815, allocations: 1.15 MB / 486.3 MB, free: 11.11 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002337/0.4818, allocations: 87.92 kB / 486.4 MB, free: 11.02 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.906e-06/0.4818, allocations: 0 / 486.4 MB, free: 11.02 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001018/0.4819, allocations: 52.11 kB / 486.5 MB, free: 10.97 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003013/0.4822, allocations: 56.34 kB / 486.5 MB, free: 10.91 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006431/0.4828, allocations: 329.6 kB / 486.8 MB, free: 10.55 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002696/0.4831, allocations: 0.7361 MB / 487.6 MB, free: 9.785 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 8.877e-05/0.4832, allocations: 29.53 kB / 487.6 MB, free: 9.758 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.741e-05/0.4833, allocations: 63.34 kB / 487.7 MB, free: 9.695 MB / 362.7 MB Notification: Performance of SimCode: time 3.61e-07/0.4833, allocations: 0 / 487.7 MB, free: 9.695 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0162/0.4995, allocations: 4.57 MB / 492.2 MB, free: 5.211 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001875/0.4998, allocations: 180 kB / 492.4 MB, free: 4.988 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.721/2.221, allocations: 0 / 492.4 MB, free: 4.988 MB / 362.7 MB (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Blocks_Examples_ShowLogicalSources_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Blocks_Examples_ShowLogicalSources.fmu > Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources_res.mat does not exist to compare? outputFormat=mat