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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009186/0.0009187, allocations: 97.44 kB / 16.3 MB, free: 5.996 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.001058/0.001058, allocations: 182.3 kB / 17.2 MB, free: 5.906 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.402/1.402, allocations: 223.2 MB / 241.1 MB, free: 5.449 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002675/0.0002675, allocations: 7.344 kB / 300.8 MB, free: 6.023 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1134/0.1137, allocations: 50.42 MB / 351.2 MB, free: 11.64 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.002179/0.1159, allocations: 1.495 MB / 352.7 MB, free: 10.13 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001391/0.1173, allocations: 0.9282 MB / 353.6 MB, free: 9.203 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001005/0.1175, allocations: 7.938 kB / 353.6 MB, free: 9.195 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005434/0.118, allocations: 139.7 kB / 353.8 MB, free: 9.059 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002422/0.1183, allocations: 107.7 kB / 353.9 MB, free: 8.953 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004111/0.1187, allocations: 146.1 kB / 354 MB, free: 8.812 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002202/0.1189, allocations: 123.8 kB / 354.1 MB, free: 8.691 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001087/0.119, allocations: 33.39 kB / 354.2 MB, free: 8.66 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001317/0.1192, allocations: 79.69 kB / 354.3 MB, free: 8.582 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001142/0.1193, allocations: 75.67 kB / 354.3 MB, free: 8.508 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.059e-05/0.1193, allocations: 4 kB / 354.3 MB, free: 8.504 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001065/0.1194, allocations: 27.98 kB / 354.4 MB, free: 8.477 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.614e-05/0.1195, allocations: 35.91 kB / 354.4 MB, free: 8.441 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.523e-05/0.1196, allocations: 57.58 kB / 354.5 MB, free: 8.379 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002196/0.1198, allocations: 151.6 kB / 354.6 MB, free: 8.23 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.485e-06/0.1198, allocations: 4 kB / 354.6 MB, free: 8.227 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.1198, allocations: 0 / 354.6 MB, free: 8.227 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.438e-06/0.1198, allocations: 4 kB / 354.6 MB, free: 8.223 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: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0008604/0.1207, allocations: 0.5103 MB / 355.1 MB, free: 7.66 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.711e-05/0.1208, allocations: 8.031 kB / 355.1 MB, free: 7.652 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.849e-05/0.1208, allocations: 34.56 kB / 355.2 MB, free: 7.609 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.768e-05/0.1209, allocations: 23.77 kB / 355.2 MB, free: 7.586 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000351/0.1212, allocations: 249.7 kB / 355.4 MB, free: 7.305 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.597e-05/0.1212, allocations: 8 kB / 355.4 MB, free: 7.297 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.25e-05/0.1213, allocations: 8 kB / 355.4 MB, free: 7.289 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002434/0.1215, allocations: 113.9 kB / 355.6 MB, free: 7.156 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.484e-06/0.1215, allocations: 0 / 355.6 MB, free: 7.156 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.641e-05/0.1216, allocations: 8 kB / 355.6 MB, free: 7.148 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.228e-06/0.1216, allocations: 7.953 kB / 355.6 MB, free: 7.141 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001465/0.1217, allocations: 51.91 kB / 355.6 MB, free: 7.09 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006824/0.1224, allocations: 0.595 MB / 356.2 MB, free: 6.434 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002478/0.1227, allocations: 131.8 kB / 356.3 MB, free: 6.277 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.431e-05/0.1227, allocations: 4.062 kB / 356.3 MB, free: 6.273 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002323/0.123, allocations: 126 kB / 356.5 MB, free: 6.129 MB / 286.1 MB Notification: Performance of pre-optimization done (n=12): time 1.283e-06/0.123, allocations: 0 / 356.5 MB, free: 6.129 MB / 286.1 MB Notification: Performance of matching and sorting (n=12): time 0.0004506/0.1235, allocations: 177.3 kB / 356.6 MB, free: 5.949 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.92e-05/0.1236, allocations: 140.6 kB / 356.8 MB, free: 5.781 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002904/0.1239, allocations: 284.9 kB / 357.1 MB, free: 5.496 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.287e-05/0.1239, allocations: 29.7 kB / 357.1 MB, free: 5.461 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.101e-05/0.124, allocations: 124.3 kB / 357.2 MB, free: 5.332 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.129e-05/0.124, allocations: 31.64 kB / 357.2 MB, free: 5.301 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.885e-06/0.124, allocations: 4 kB / 357.2 MB, free: 5.297 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001404/0.1242, allocations: 326.8 kB / 357.6 MB, free: 4.969 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.922e-05/0.1243, allocations: 39.97 kB / 357.6 MB, free: 4.93 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000122/0.1244, allocations: 84.25 kB / 357.7 MB, free: 4.828 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.987e-05/0.1245, allocations: 35.92 kB / 357.7 MB, free: 4.793 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.148e-06/0.1245, allocations: 8.031 kB / 357.7 MB, free: 4.785 MB / 286.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002475/0.1248, allocations: 133.3 kB / 357.9 MB, free: 4.648 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.963e-05/0.1248, allocations: 7.953 kB / 357.9 MB, free: 4.641 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.726e-05/0.1248, allocations: 11.92 kB / 357.9 MB, free: 4.629 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.244e-05/0.1249, allocations: 0 / 357.9 MB, free: 4.629 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.338e-05/0.1249, allocations: 12 kB / 357.9 MB, free: 4.617 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.035e-06/0.125, allocations: 4 kB / 357.9 MB, free: 4.613 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001123/0.1251, allocations: 27.92 kB / 357.9 MB, free: 4.586 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.214e-05/0.1251, allocations: 8 kB / 357.9 MB, free: 4.578 MB / 286.1 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.0001295/0.1252, allocations: 149.6 kB / 358.1 MB, free: 4.422 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.024e-05/0.1253, allocations: 15.81 kB / 358.1 MB, free: 4.406 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.918e-05/0.1253, allocations: 30.28 kB / 358.1 MB, free: 4.371 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.905e-06/0.1253, allocations: 4 kB / 358.1 MB, free: 4.367 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.541e-06/0.1254, allocations: 0 / 358.1 MB, free: 4.367 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.613e-06/0.1254, allocations: 3.984 kB / 358.1 MB, free: 4.363 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002149/0.1256, allocations: 245.5 kB / 358.4 MB, free: 4.074 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.956e-06/0.1256, allocations: 4 kB / 358.4 MB, free: 4.07 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.647e-05/0.1256, allocations: 4 kB / 358.4 MB, free: 4.066 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.817e-06/0.1256, allocations: 7.938 kB / 358.4 MB, free: 4.059 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.152e-05/0.1257, allocations: 3.984 kB / 358.4 MB, free: 4.055 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.008e-06/0.1257, allocations: 7.953 kB / 358.4 MB, free: 4.047 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.1257, allocations: 0 / 358.4 MB, free: 4.047 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002883/0.126, allocations: 201.9 kB / 358.6 MB, free: 3.812 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.269e-05/0.126, allocations: 104.8 kB / 358.7 MB, free: 3.691 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.314e-05/0.1261, allocations: 8 kB / 358.7 MB, free: 3.684 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.937e-05/0.1262, allocations: 11.98 kB / 358.7 MB, free: 3.672 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.873e-05/0.1263, allocations: 19.98 kB / 358.7 MB, free: 3.652 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.613e-05/0.1263, allocations: 4 kB / 358.7 MB, free: 3.648 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002268/0.1265, allocations: 208.5 kB / 358.9 MB, free: 3.445 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1265, allocations: 4 kB / 358.9 MB, free: 3.441 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002917/0.1268, allocations: 39.89 kB / 359 MB, free: 3.402 MB / 286.1 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.001505/0.1283, allocations: 1.187 MB / 360.2 MB, free: 2.336 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0002681/0.1286, allocations: 91.97 kB / 360.3 MB, free: 2.246 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 5.22e-06/0.1286, allocations: 4 kB / 360.3 MB, free: 2.242 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001191/0.1288, allocations: 51.91 kB / 360.3 MB, free: 2.191 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003222/0.1291, allocations: 40.39 kB / 360.4 MB, free: 2.152 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002084/0.1312, allocations: 1.714 MB / 362.1 MB, free: 372 kB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003767/0.1316, allocations: 0.7399 MB / 362.8 MB, free: 15.6 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.483e-05/0.1317, allocations: 29.53 kB / 362.8 MB, free: 15.57 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.548e-05/0.1318, allocations: 59.41 kB / 362.9 MB, free: 15.51 MB / 302.1 MB Notification: Performance of SimCode: time 2.01e-07/0.1318, allocations: 0 / 362.9 MB, free: 15.51 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01698/0.1488, allocations: 4.456 MB / 367.4 MB, free: 11.19 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001873/0.149, allocations: 214.4 kB / 367.6 MB, free: 10.95 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.738/1.887, allocations: 7.938 kB / 367.6 MB, free: 10.94 MB / 302.1 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