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.0007142/0.0007142, allocations: 86.36 kB / 16.31 MB, free: 6.449 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.0008852/0.0008852, allocations: 180.2 kB / 17.21 MB, free: 6.32 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.293/1.293, allocations: 223.2 MB / 241.2 MB, free: 5.359 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000284/0.0002841, allocations: 7.125 kB / 300.9 MB, free: 6.105 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09772/0.09802, allocations: 50.42 MB / 351.3 MB, free: 11.59 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.002164/0.1002, allocations: 1.507 MB / 352.8 MB, free: 10.06 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001439/0.1017, allocations: 0.9478 MB / 353.8 MB, free: 9.113 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001069/0.1018, allocations: 0 / 353.8 MB, free: 9.113 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005547/0.1024, allocations: 151.6 kB / 353.9 MB, free: 8.965 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002325/0.1026, allocations: 110.7 kB / 354 MB, free: 8.859 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003613/0.103, allocations: 139.8 kB / 354.2 MB, free: 8.723 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002262/0.1032, allocations: 183.4 kB / 354.3 MB, free: 8.543 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.363e-05/0.1033, allocations: 29.48 kB / 354.4 MB, free: 8.516 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001115/0.1034, allocations: 71.69 kB / 354.4 MB, free: 8.445 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001197/0.1036, allocations: 83.67 kB / 354.5 MB, free: 8.363 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.055e-05/0.1036, allocations: 4 kB / 354.5 MB, free: 8.359 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001055/0.1037, allocations: 39.92 kB / 354.6 MB, free: 8.32 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.267e-05/0.1038, allocations: 43.83 kB / 354.6 MB, free: 8.277 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.639e-05/0.1038, allocations: 61.56 kB / 354.7 MB, free: 8.211 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002042/0.1041, allocations: 151.7 kB / 354.8 MB, free: 8.062 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.987e-06/0.1041, allocations: 0 / 354.8 MB, free: 8.062 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.834e-06/0.1041, allocations: 0 / 354.8 MB, free: 8.062 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.659e-06/0.1041, allocations: 0 / 354.8 MB, free: 8.062 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.0007513/0.1048, allocations: 0.5105 MB / 355.3 MB, free: 7.5 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.687e-05/0.1049, allocations: 8.031 kB / 355.3 MB, free: 7.492 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.128e-05/0.105, allocations: 38.56 kB / 355.4 MB, free: 7.445 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.548e-05/0.105, allocations: 23.75 kB / 355.4 MB, free: 7.422 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002991/0.1053, allocations: 245.7 kB / 355.6 MB, free: 7.145 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.533e-05/0.1053, allocations: 8 kB / 355.6 MB, free: 7.137 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.508e-05/0.1054, allocations: 4 kB / 355.7 MB, free: 7.133 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000218/0.1056, allocations: 124.2 kB / 355.8 MB, free: 6.992 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.605e-05/0.1056, allocations: 4 kB / 355.8 MB, free: 6.988 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.197e-05/0.1056, allocations: 0 / 355.8 MB, free: 6.988 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.816e-06/0.1056, allocations: 7.938 kB / 355.8 MB, free: 6.98 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001462/0.1058, allocations: 51.91 kB / 355.8 MB, free: 6.93 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006363/0.1064, allocations: 0.6028 MB / 356.4 MB, free: 6.266 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002347/0.1067, allocations: 127.9 kB / 356.6 MB, free: 6.113 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001001/0.1068, allocations: 50.5 kB / 356.6 MB, free: 6.055 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.381e-05/0.1068, allocations: 4 kB / 356.6 MB, free: 6.051 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002206/0.1071, allocations: 133.8 kB / 356.7 MB, free: 5.898 MB / 286.1 MB Notification: Performance of pre-optimization done (n=12): time 1.242e-06/0.1071, allocations: 0 / 356.7 MB, free: 5.898 MB / 286.1 MB Notification: Performance of matching and sorting (n=12): time 0.0004295/0.1075, allocations: 177.2 kB / 356.9 MB, free: 5.719 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.026e-05/0.1076, allocations: 136.6 kB / 357.1 MB, free: 5.555 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002844/0.1079, allocations: 281 kB / 357.3 MB, free: 5.273 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.862e-05/0.1079, allocations: 29.7 kB / 357.4 MB, free: 5.238 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.244e-05/0.108, allocations: 124.3 kB / 357.5 MB, free: 5.109 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.423e-05/0.108, allocations: 31.56 kB / 357.5 MB, free: 5.078 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.684e-06/0.108, allocations: 4 kB / 357.5 MB, free: 5.074 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001246/0.1082, allocations: 330.8 kB / 357.8 MB, free: 4.742 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.772e-05/0.1083, allocations: 31.98 kB / 357.9 MB, free: 4.711 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001178/0.1084, allocations: 87.95 kB / 358 MB, free: 4.605 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.78e-05/0.1085, allocations: 36.44 kB / 358 MB, free: 4.57 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.1085, allocations: 4.031 kB / 358 MB, free: 4.566 MB / 286.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.000259/0.1088, allocations: 141.3 kB / 358.1 MB, free: 4.422 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.589e-05/0.1088, allocations: 7.953 kB / 358.1 MB, free: 4.414 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.192e-06/0.1088, allocations: 4 kB / 358.1 MB, free: 4.41 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.164e-05/0.1088, allocations: 0 / 358.1 MB, free: 4.41 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.705e-05/0.1089, allocations: 19.98 kB / 358.2 MB, free: 4.391 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.658e-06/0.1089, allocations: 4 kB / 358.2 MB, free: 4.387 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001071/0.109, allocations: 31.86 kB / 358.2 MB, free: 4.355 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.051e-05/0.1091, allocations: 4 kB / 358.2 MB, free: 4.352 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.0001351/0.1092, allocations: 149.6 kB / 358.3 MB, free: 4.195 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.675e-05/0.1092, allocations: 19.81 kB / 358.4 MB, free: 4.176 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.709e-05/0.1093, allocations: 29.66 kB / 358.4 MB, free: 4.141 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.815e-06/0.1093, allocations: 0 / 358.4 MB, free: 4.141 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.849e-06/0.1093, allocations: 0 / 358.4 MB, free: 4.141 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.54e-06/0.1093, allocations: 4 kB / 358.4 MB, free: 4.137 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002172/0.1096, allocations: 241.5 kB / 358.6 MB, free: 3.852 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.1096, allocations: 0 / 358.6 MB, free: 3.852 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.846e-05/0.1096, allocations: 7.984 kB / 358.6 MB, free: 3.844 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.335e-06/0.1096, allocations: 4 kB / 358.6 MB, free: 3.84 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.082e-05/0.1096, allocations: 0 / 358.6 MB, free: 3.84 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.101e-06/0.1096, allocations: 7.953 kB / 358.7 MB, free: 3.832 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.276e-06/0.1096, allocations: 3.938 kB / 358.7 MB, free: 3.828 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002918/0.1099, allocations: 174.6 kB / 358.8 MB, free: 3.633 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.655e-05/0.11, allocations: 108.8 kB / 358.9 MB, free: 3.508 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.207e-05/0.1101, allocations: 4.125 kB / 358.9 MB, free: 3.504 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.887e-05/0.1102, allocations: 19.98 kB / 359 MB, free: 3.484 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.728e-05/0.1102, allocations: 19.94 kB / 359 MB, free: 3.465 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.593e-05/0.1102, allocations: 11.98 kB / 359 MB, free: 3.453 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001968/0.1105, allocations: 204.5 kB / 359.2 MB, free: 3.254 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.1105, allocations: 4 kB / 359.2 MB, free: 3.25 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002527/0.1107, allocations: 32 kB / 359.2 MB, free: 3.219 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.001425/0.1121, allocations: 1.02 MB / 360.2 MB, free: 2.324 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0002645/0.1124, allocations: 99.78 kB / 360.3 MB, free: 2.227 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.1124, allocations: 0 / 360.3 MB, free: 2.227 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001235/0.1126, allocations: 52.22 kB / 360.4 MB, free: 2.176 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003224/0.1129, allocations: 48.36 kB / 360.4 MB, free: 2.129 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001647/0.1146, allocations: 1.145 MB / 361.6 MB, free: 0.9141 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002667/0.1148, allocations: 0.7322 MB / 362.3 MB, free: 160 kB / 286.1 MB Notification: Performance of simCode: alias equations: time 8.381e-05/0.1149, allocations: 25.53 kB / 362.3 MB, free: 132 kB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.032e-05/0.115, allocations: 55.41 kB / 362.4 MB, free: 76 kB / 286.1 MB Notification: Performance of SimCode: time 2.41e-07/0.115, allocations: 0 / 362.4 MB, free: 76 kB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0164/0.1314, allocations: 4.469 MB / 366.9 MB, free: 11.74 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001642/0.1316, allocations: 222.5 kB / 367.1 MB, free: 11.5 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.855/1.987, allocations: 3.875 kB / 367.1 MB, free: 11.5 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