Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.ShowLogicalSources,fileNamePrefix="Modelica_3_2_3_Modelica_Blocks_Examples_ShowLogicalSources",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.ShowLogicalSources,fileNamePrefix="Modelica_3_2_3_Modelica_Blocks_Examples_ShowLogicalSources",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001074/0.001074, allocations: 180.7 kB / 8.7 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.506/1.506, allocations: 205.3 MB / 214.4 MB, free: 1.73 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008586/0.0008585, allocations: 86.22 kB / 262.5 MB, free: 1.68 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.963e-05/1.959e-05, allocations: 4.219 kB / 315.6 MB, free: 22.65 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08773/0.08777, allocations: 47.59 MB / 363.2 MB, free: 7 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3103/0.3982, allocations: 78.86 MB / 442 MB, free: 0.5234 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002342/0.3985, allocations: 70.66 kB / 442.1 MB, free: 0.4922 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01604/0.4145, allocations: 5.66 MB / 447.7 MB, free: 11.82 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.4146, allocations: 4 kB / 447.8 MB, free: 11.82 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.584e-05/0.4146, allocations: 4.75 kB / 447.8 MB, free: 11.81 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: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0006473/0.4152, allocations: 494.8 kB / 448.2 MB, free: 11.29 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.237e-05/0.4153, allocations: 8.031 kB / 448.2 MB, free: 11.28 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.231e-05/0.4154, allocations: 19.81 kB / 448.3 MB, free: 11.26 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003725/0.4157, allocations: 258.4 kB / 448.5 MB, free: 10.98 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.727e-05/0.4158, allocations: 8 kB / 448.5 MB, free: 10.98 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.893e-05/0.4158, allocations: 4 kB / 448.5 MB, free: 10.97 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001061/0.4159, allocations: 41.75 kB / 448.6 MB, free: 10.95 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001643/0.4161, allocations: 110.7 kB / 448.7 MB, free: 10.83 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.348e-06/0.4161, allocations: 7.938 kB / 448.7 MB, free: 10.82 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.452e-05/0.4161, allocations: 0 / 448.7 MB, free: 10.82 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.458e-06/0.4161, allocations: 4 kB / 448.7 MB, free: 10.82 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005975/0.4167, allocations: 0.5843 MB / 449.3 MB, free: 10.23 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000151/0.4169, allocations: 117.6 kB / 449.4 MB, free: 10.11 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.863e-05/0.417, allocations: 40.45 kB / 449.4 MB, free: 10.07 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.413e-05/0.417, allocations: 3.984 kB / 449.4 MB, free: 10.07 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001569/0.4172, allocations: 121.8 kB / 449.6 MB, free: 9.945 MB / 330.7 MB Notification: Performance of pre-optimization done (n=12): time 1.332e-06/0.4172, allocations: 0 / 449.6 MB, free: 9.945 MB / 330.7 MB Notification: Performance of matching and sorting (n=12): time 0.0002528/0.4174, allocations: 127.9 kB / 449.7 MB, free: 9.836 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.131e-05/0.4175, allocations: 128.6 kB / 449.8 MB, free: 9.68 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002507/0.4178, allocations: 253 kB / 450 MB, free: 9.473 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.86e-05/0.4178, allocations: 25.7 kB / 450.1 MB, free: 9.441 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.571e-05/0.4179, allocations: 133 kB / 450.2 MB, free: 9.336 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.072e-05/0.4179, allocations: 28.55 kB / 450.2 MB, free: 9.312 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.642e-06/0.4179, allocations: 0 / 450.2 MB, free: 9.312 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001136/0.4181, allocations: 333.1 kB / 450.6 MB, free: 8.988 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.938e-05/0.4181, allocations: 26.55 kB / 450.6 MB, free: 8.969 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.076e-05/0.4182, allocations: 78.52 kB / 450.7 MB, free: 8.887 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.219e-05/0.4183, allocations: 29.33 kB / 450.7 MB, free: 8.867 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.4183, allocations: 0 / 450.7 MB, free: 8.867 MB / 330.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001812/0.4185, allocations: 124.8 kB / 450.8 MB, free: 8.758 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.297e-05/0.4185, allocations: 4 kB / 450.8 MB, free: 8.754 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.809e-06/0.4185, allocations: 0 / 450.8 MB, free: 8.754 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.319e-05/0.4185, allocations: 4 kB / 450.8 MB, free: 8.75 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.919e-05/0.4186, allocations: 24.02 kB / 450.8 MB, free: 8.727 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.917e-06/0.4186, allocations: 0 / 450.8 MB, free: 8.727 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001156/0.4187, allocations: 23.88 kB / 450.9 MB, free: 8.703 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.202e-05/0.4188, allocations: 7.312 kB / 450.9 MB, free: 8.699 MB / 330.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 9.42e-05/0.4189, allocations: 108.9 kB / 451 MB, free: 8.586 MB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001863/0.419, allocations: 135.7 kB / 451.1 MB, free: 8.469 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.218e-05/0.4191, allocations: 23.84 kB / 451.1 MB, free: 8.445 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001875/0.4193, allocations: 105.3 kB / 451.2 MB, free: 8.359 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.484e-06/0.4193, allocations: 0 / 451.2 MB, free: 8.359 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.977e-06/0.4193, allocations: 0 / 451.2 MB, free: 8.359 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.721e-06/0.4193, allocations: 7.984 kB / 451.2 MB, free: 8.352 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002015/0.4195, allocations: 216.7 kB / 451.5 MB, free: 8.129 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.805e-06/0.4195, allocations: 3.953 kB / 451.5 MB, free: 8.125 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.797e-05/0.4196, allocations: 11.94 kB / 451.5 MB, free: 8.113 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.364e-06/0.4196, allocations: 0 / 451.5 MB, free: 8.113 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.635e-05/0.4196, allocations: 11.55 kB / 451.5 MB, free: 8.105 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/0.4196, allocations: 11.88 kB / 451.5 MB, free: 8.094 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.4196, allocations: 0 / 451.5 MB, free: 8.094 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002214/0.4199, allocations: 179.5 kB / 451.7 MB, free: 7.906 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.232e-05/0.4199, allocations: 112.2 kB / 451.8 MB, free: 7.781 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.486e-05/0.42, allocations: 4 kB / 451.8 MB, free: 7.777 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001113/0.4201, allocations: 15.98 kB / 451.8 MB, free: 7.762 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.332e-05/0.4202, allocations: 15.53 kB / 451.8 MB, free: 7.75 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.054e-05/0.4202, allocations: 4 kB / 451.8 MB, free: 7.746 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001654/0.4204, allocations: 206 kB / 452 MB, free: 7.586 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4204, allocations: 0 / 452 MB, free: 7.586 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002717/0.4206, allocations: 35.12 kB / 452.1 MB, free: 7.555 MB / 330.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.001273/0.4219, allocations: 1.121 MB / 453.2 MB, free: 6.426 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001909/0.4221, allocations: 86.36 kB / 453.3 MB, free: 6.363 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.4221, allocations: 0 / 453.3 MB, free: 6.363 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 8.074e-05/0.4222, allocations: 42.94 kB / 453.3 MB, free: 6.332 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000307/0.4225, allocations: 54.56 kB / 453.4 MB, free: 6.289 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006187/0.4232, allocations: 325 kB / 453.7 MB, free: 5.961 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003063/0.4235, allocations: 0.7388 MB / 454.4 MB, free: 5.199 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 9.018e-05/0.4236, allocations: 33.98 kB / 454.4 MB, free: 5.168 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001058/0.4237, allocations: 56.67 kB / 454.5 MB, free: 5.145 MB / 330.7 MB Notification: Performance of SimCode: time 2.51e-07/0.4237, allocations: 0 / 454.5 MB, free: 5.145 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02348/0.4472, allocations: 4.102 MB / 458.6 MB, free: 1.035 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001793/0.4475, allocations: 167.3 kB / 458.8 MB, free: 0.8359 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.663/2.111, allocations: 0 / 458.8 MB, free: 0.8359 MB / 330.7 MB (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Blocks_Examples_ShowLogicalSources_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Blocks_Examples_ShowLogicalSources.fmu > Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources_res.mat does not exist to compare? outputFormat=mat