Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_Modelica_Blocks_Examples_ShowLogicalSources",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.ShowLogicalSources,fileNamePrefix="Modelica_3_2_3_cpp_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.002243/0.002248, allocations: 183.2 kB / 16.4 MB, free: 5.75 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.116/2.116, allocations: 205.4 MB / 222.5 MB, free: 9.113 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001162/0.001162, allocations: 101.4 kB / 270.9 MB, free: 8.363 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000391/0.0003911, allocations: 8 kB / 327 MB, free: 124 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3306/0.331, allocations: 47.57 MB / 374.6 MB, free: 45.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.002411/0.3335, allocations: 1.482 MB / 376.1 MB, free: 44.26 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001885/0.3354, allocations: 0.8716 MB / 377 MB, free: 43.59 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001271/0.3356, allocations: 1.219 kB / 377 MB, free: 43.59 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006919/0.3363, allocations: 145.2 kB / 377.1 MB, free: 43.51 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003558/0.3367, allocations: 111.6 kB / 377.2 MB, free: 43.43 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005487/0.3372, allocations: 116.2 kB / 377.3 MB, free: 43.37 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002501/0.3375, allocations: 131.9 kB / 377.5 MB, free: 43.28 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001141/0.3376, allocations: 11.62 kB / 377.5 MB, free: 43.28 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001497/0.3378, allocations: 76.34 kB / 377.6 MB, free: 43.23 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001363/0.3379, allocations: 79.33 kB / 377.6 MB, free: 43.19 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.721e-05/0.338, allocations: 5.375 kB / 377.6 MB, free: 43.19 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001581/0.3381, allocations: 33.61 kB / 377.7 MB, free: 43.18 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.755e-05/0.3382, allocations: 44.28 kB / 377.7 MB, free: 43.15 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.653e-05/0.3383, allocations: 55 kB / 377.8 MB, free: 43.1 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002937/0.3386, allocations: 159.9 kB / 377.9 MB, free: 42.99 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.645e-06/0.3386, allocations: 0 / 377.9 MB, free: 42.99 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.693e-06/0.3386, allocations: 0 / 377.9 MB, free: 42.99 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.48e-06/0.3386, allocations: 1.281 kB / 377.9 MB, free: 42.99 MB / 298.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.0009224/0.3396, allocations: 0.4988 MB / 378.4 MB, free: 42.5 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.693e-05/0.3396, allocations: 9.562 kB / 378.4 MB, free: 42.5 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.416e-05/0.3397, allocations: 40.89 kB / 378.5 MB, free: 42.45 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.051e-05/0.3398, allocations: 28.47 kB / 378.5 MB, free: 42.43 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003573/0.3401, allocations: 252 kB / 378.7 MB, free: 42.17 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.007e-05/0.3402, allocations: 3.719 kB / 378.7 MB, free: 42.17 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.472e-05/0.3402, allocations: 11.78 kB / 378.8 MB, free: 42.16 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002949/0.3405, allocations: 114.3 kB / 378.9 MB, free: 42.05 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.122e-05/0.3405, allocations: 1.062 kB / 378.9 MB, free: 42.05 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.955e-05/0.3406, allocations: 8.984 kB / 378.9 MB, free: 42.05 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.604e-06/0.3406, allocations: 1.062 kB / 378.9 MB, free: 42.05 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002238/0.3408, allocations: 51.95 kB / 378.9 MB, free: 42.02 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006974/0.3415, allocations: 0.6028 MB / 379.5 MB, free: 41.41 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003468/0.3419, allocations: 129.7 kB / 379.7 MB, free: 41.3 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.468e-05/0.3419, allocations: 6.047 kB / 379.7 MB, free: 41.29 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002893/0.3422, allocations: 117.8 kB / 379.8 MB, free: 41.19 MB / 298.7 MB Notification: Performance of pre-optimization done (n=12): time 2.194e-06/0.3423, allocations: 0 / 379.8 MB, free: 41.19 MB / 298.7 MB Notification: Performance of matching and sorting (n=12): time 0.0006681/0.3429, allocations: 174.5 kB / 380 MB, free: 41.09 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.423e-05/0.343, allocations: 131 kB / 380.1 MB, free: 40.93 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004075/0.3434, allocations: 304.8 kB / 380.4 MB, free: 40.73 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.357e-05/0.3435, allocations: 32.11 kB / 380.4 MB, free: 40.69 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.443e-05/0.3435, allocations: 174.1 kB / 380.6 MB, free: 40.52 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.012e-05/0.3436, allocations: 28.22 kB / 380.6 MB, free: 40.5 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.086e-05/0.3436, allocations: 5.156 kB / 380.6 MB, free: 40.5 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.972e-05/0.3437, allocations: 316 kB / 380.9 MB, free: 40.18 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000143/0.3438, allocations: 33.23 kB / 381 MB, free: 40.16 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001731/0.344, allocations: 82.7 kB / 381 MB, free: 40.09 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001417/0.3442, allocations: 34.94 kB / 381.1 MB, free: 40.07 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.948e-06/0.3442, allocations: 1.281 kB / 381.1 MB, free: 40.07 MB / 298.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003892/0.3446, allocations: 136.9 kB / 381.2 MB, free: 39.98 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.965e-05/0.3446, allocations: 4.719 kB / 381.2 MB, free: 39.98 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.233e-06/0.3447, allocations: 2.344 kB / 381.2 MB, free: 39.98 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.821e-05/0.3447, allocations: 1.25 kB / 381.2 MB, free: 39.98 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001373/0.3448, allocations: 15.52 kB / 381.2 MB, free: 39.98 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.007e-06/0.3449, allocations: 2.531 kB / 381.2 MB, free: 39.98 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001998/0.3451, allocations: 27.14 kB / 381.3 MB, free: 39.96 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.763e-05/0.3451, allocations: 12.64 kB / 381.3 MB, free: 39.96 MB / 298.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 () * Number of clocked 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 0.0001554/0.3453, allocations: 147.5 kB / 381.4 MB, free: 39.82 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.618e-05/0.3453, allocations: 22.5 kB / 381.4 MB, free: 39.81 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.926e-05/0.3454, allocations: 20.78 kB / 381.5 MB, free: 39.8 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.011e-06/0.3454, allocations: 2.094 kB / 381.5 MB, free: 39.8 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.145e-06/0.3454, allocations: 5.422 kB / 381.5 MB, free: 39.8 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.17e-06/0.3454, allocations: 0 / 381.5 MB, free: 39.8 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002645/0.3457, allocations: 243.9 kB / 381.7 MB, free: 39.54 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.677e-06/0.3457, allocations: 5.281 kB / 381.7 MB, free: 39.54 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.811e-05/0.3458, allocations: 8.984 kB / 381.7 MB, free: 39.54 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.59e-06/0.3458, allocations: 1.406 kB / 381.7 MB, free: 39.54 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.688e-05/0.3458, allocations: 1.406 kB / 381.7 MB, free: 39.54 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.767e-06/0.3458, allocations: 1.406 kB / 381.7 MB, free: 39.54 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.489e-06/0.3459, allocations: 9.266 kB / 381.7 MB, free: 39.53 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004408/0.3463, allocations: 204.5 kB / 381.9 MB, free: 39.36 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.098e-05/0.3464, allocations: 99.81 kB / 382 MB, free: 39.25 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.958e-05/0.3465, allocations: 6.312 kB / 382 MB, free: 39.24 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002061/0.3467, allocations: 14.55 kB / 382 MB, free: 39.24 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.786e-05/0.3468, allocations: 17.34 kB / 382.1 MB, free: 39.23 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.447e-05/0.3468, allocations: 12.92 kB / 382.1 MB, free: 39.22 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002846/0.3471, allocations: 207.8 kB / 382.3 MB, free: 39.09 MB / 298.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.3471, allocations: 0 / 382.3 MB, free: 39.09 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003968/0.3475, allocations: 39.91 kB / 382.3 MB, free: 39.07 MB / 298.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.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 9 * 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.001709/0.3492, allocations: 1.191 MB / 383.5 MB, free: 37.99 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004063/0.3497, allocations: 89.53 kB / 383.6 MB, free: 37.95 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 4.007e-06/0.3497, allocations: 4.188 kB / 383.6 MB, free: 37.95 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000213/0.3499, allocations: 56.38 kB / 383.7 MB, free: 37.93 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004546/0.3504, allocations: 49.83 kB / 383.7 MB, free: 37.9 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002533/0.3529, allocations: 1.75 MB / 385.5 MB, free: 36.48 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002104/0.3532, allocations: 0.7381 MB / 386.2 MB, free: 35.75 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001437/0.3533, allocations: 55.05 kB / 386.2 MB, free: 35.71 MB / 298.7 MB Notification: Performance of SimCode: time 7.82e-07/0.3534, allocations: 0 / 386.2 MB, free: 35.71 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.796/3.15, allocations: 3.738 MB / 390 MB, free: 32.9 MB / 298.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Blocks.Examples.ShowLogicalSources.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Blocks.Examples.ShowLogicalSources.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Blocks.Examples.ShowLogicalSources_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Blocks_Examples_ShowLogicalSources_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Blocks_Examples_ShowLogicalSources.fmu > Modelica_3.2.3_cpp_Modelica.Blocks.Examples.ShowLogicalSources.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Blocks.Examples.ShowLogicalSources_res.mat does not exist to compare? outputFormat=mat