Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleShadow.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo", uses=false) Using package PhotoVoltaics with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/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) 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(PhotoVoltaics.Examples.SimpleModuleShadow,fileNamePrefix="PhotoVoltaics_PhotoVoltaics_Examples_SimpleModuleShadow",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PhotoVoltaics.Examples.SimpleModuleShadow,fileNamePrefix="PhotoVoltaics_PhotoVoltaics_Examples_SimpleModuleShadow",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.001289/0.001289, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001288/0.001288, allocations: 188.4 kB / 16.25 MB, free: 6.633 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.255/1.255, allocations: 222.9 MB / 239.9 MB, free: 4.527 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.1239/0.1239, allocations: 5.397 MB / 295.5 MB, free: 2.934 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001307/0.001308, allocations: 63.89 kB / 360.5 MB, free: 14.39 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09428/0.09561, allocations: 50.61 MB / 411.1 MB, free: 11.73 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.Examples.SimpleModuleShadow): time 0.00539/0.101, allocations: 4.404 MB / 415.5 MB, free: 7.301 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002556/0.1036, allocations: 1.586 MB / 417.1 MB, free: 5.711 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004843/0.1041, allocations: 11.94 kB / 417.1 MB, free: 5.699 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001037/0.1052, allocations: 323.3 kB / 417.4 MB, free: 5.383 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005568/0.1058, allocations: 214.6 kB / 417.6 MB, free: 5.172 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003434/0.1061, allocations: 191.8 kB / 417.8 MB, free: 4.984 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.1818/0.288, allocations: 25.65 MB / 443.4 MB, free: 32.47 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007179/0.2952, allocations: 7.963 MB / 451.4 MB, free: 29.07 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01085/0.3061, allocations: 9.368 MB / 460.8 MB, free: 24.68 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01556/0.3217, allocations: 10.82 MB / 471.6 MB, free: 19.65 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.006844/0.3285, allocations: 2.706 MB / 474.3 MB, free: 19.65 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008048/0.3366, allocations: 2.717 MB / 477 MB, free: 19.51 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005735/0.3424, allocations: 5.12 MB / 482.1 MB, free: 15.34 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01685/0.3592, allocations: 9.528 MB / 491.7 MB, free: 6.707 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03131/0.3906, allocations: 28.72 MB / 0.5082 GB, free: 12.7 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.414e-06/0.3906, allocations: 0 / 0.5082 GB, free: 12.7 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.264e-06/0.3906, allocations: 0 / 0.5082 GB, free: 12.7 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.001027/0.3917, allocations: 0 / 0.5082 GB, free: 12.7 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2129 * Number of variables: 2129 Notification: Performance of Generate backend data structure: time 0.1048/0.4965, allocations: 30.79 MB / 0.5383 GB, free: 13.8 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.972e-05/0.4966, allocations: 12.03 kB / 0.5383 GB, free: 13.79 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005751/0.5023, allocations: 1.122 MB / 0.5394 GB, free: 12.66 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008631/0.511, allocations: 1.448 MB / 0.5408 GB, free: 11.2 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05355/0.5645, allocations: 18.8 MB / 0.5591 GB, free: 8.488 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006884/0.5653, allocations: 0.6373 MB / 0.5598 GB, free: 7.848 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003998/0.5693, allocations: 0.8203 MB / 0.5606 GB, free: 7.027 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03777/0.6071, allocations: 15.67 MB / 0.5759 GB, free: 6.844 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003923/0.6075, allocations: 23.75 kB / 0.5759 GB, free: 6.82 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003863/0.6114, allocations: 352 kB / 0.5762 GB, free: 6.477 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002243/0.6116, allocations: 212 kB / 0.5764 GB, free: 6.27 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.4353/1.047, allocations: 17.6 MB / 0.5936 GB, free: 96.15 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1132/1.16, allocations: 57.5 MB / 0.6498 GB, free: 67.61 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0326/1.193, allocations: 21.37 MB / 0.6706 GB, free: 53.29 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01107/1.204, allocations: 7.451 MB / 0.6779 GB, free: 48.85 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003294/1.204, allocations: 79.14 kB / 0.678 GB, free: 48.79 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.948e-05/1.204, allocations: 74.08 kB / 0.678 GB, free: 48.7 MB / 446.1 MB Notification: Performance of pre-optimization done (n=448): time 5.721e-06/1.204, allocations: 4 kB / 0.678 GB, free: 48.7 MB / 446.1 MB Notification: Performance of matching and sorting (n=448): time 0.09587/1.3, allocations: 36.3 MB / 0.7135 GB, free: 12.56 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.354e-05/1.3, allocations: 94.92 kB / 0.7136 GB, free: 12.46 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02837/1.329, allocations: 15.19 MB / 0.7284 GB, free: 13.45 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001865/1.331, allocations: 110.4 kB / 0.7285 GB, free: 13.34 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.007744/1.338, allocations: 6.086 MB / 0.7345 GB, free: 7.367 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.003729/1.342, allocations: 1.584 MB / 0.736 GB, free: 5.762 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.01149/1.354, allocations: 2.093 MB / 0.7381 GB, free: 3.652 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001043/1.354, allocations: 301.1 kB / 0.7383 GB, free: 3.355 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0178/1.372, allocations: 7.648 MB / 0.7458 GB, free: 11.7 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01921/1.391, allocations: 8.84 MB / 0.7544 GB, free: 2.516 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.03475/1.426, allocations: 14.4 MB / 0.7685 GB, free: 3.719 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.968e-05/1.426, allocations: 4 kB / 0.7685 GB, free: 3.715 MB / 494.1 MB Notification: Performance of matching and sorting (n=1134) (initialization): time 0.3514/1.777, allocations: 39.95 MB / 0.8075 GB, free: 131.5 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.295e-05/1.777, allocations: 16.69 kB / 0.8075 GB, free: 131.5 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.994e-05/1.777, allocations: 23.09 kB / 0.8076 GB, free: 131.5 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.04682/1.824, allocations: 25.73 MB / 0.8327 GB, free: 126.7 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006428/1.831, allocations: 1.497 MB / 0.8342 GB, free: 126.5 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.5325/2.363, allocations: 202.9 MB / 1.032 GB, free: 92.46 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01825/2.382, allocations: 2.562 MB / 1.035 GB, free: 91.48 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002668/2.384, allocations: 380.1 kB / 1.035 GB, free: 91.34 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 105 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (840): * Single equations (assignments): 791 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 48 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 48 systems {2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(47,200)} Notification: Performance of prepare postOptimizeDAE: time 0.0129/2.397, allocations: 4.515 MB / 1.04 GB, free: 88.71 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004875/2.402, allocations: 1.156 MB / 1.041 GB, free: 88.17 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.09333/2.495, allocations: 31.81 MB / 1.072 GB, free: 60.17 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.995e-05/2.496, allocations: 40 kB / 1.072 GB, free: 60.13 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.695e-06/2.496, allocations: 0 / 1.072 GB, free: 60.13 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001266/2.496, allocations: 27.91 kB / 1.072 GB, free: 60.1 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1311/2.627, allocations: 46.64 MB / 1.117 GB, free: 13.61 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.165e-05/2.627, allocations: 0 / 1.117 GB, free: 13.61 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001797/2.629, allocations: 454.5 kB / 1.118 GB, free: 13.18 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02398/2.653, allocations: 15.48 MB / 1.133 GB, free: 13.75 MB / 0.4982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001437/2.654, allocations: 114.1 kB / 1.133 GB, free: 13.64 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4462/3.1, allocations: 115 MB / 1.245 GB, free: 85.65 MB / 0.4982 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/3.1, allocations: 0 / 1.245 GB, free: 85.65 MB / 0.4982 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.08276/3.183, allocations: 30.88 MB / 1.276 GB, free: 54.95 MB / 0.4982 GB Notification: Performance of postOpt removeConstants (simulation): time 0.008205/3.191, allocations: 2.655 MB / 1.278 GB, free: 52.32 MB / 0.4982 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005208/3.197, allocations: 72 kB / 1.278 GB, free: 52.25 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01209/3.209, allocations: 1.397 MB / 1.28 GB, free: 50.86 MB / 0.4982 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001082/3.21, allocations: 280.1 kB / 1.28 GB, free: 50.58 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001426/3.211, allocations: 139.9 kB / 1.28 GB, free: 50.45 MB / 0.4982 GB Notification: Performance of sorting global known variables: time 0.0183/3.23, allocations: 10.49 MB / 1.29 GB, free: 40.02 MB / 0.4982 GB Notification: Performance of sort global known variables: time 2.4e-07/3.23, allocations: 0 / 1.29 GB, free: 40.02 MB / 0.4982 GB Notification: Performance of remove unused functions: time 0.01765/3.247, allocations: 3.713 MB / 1.294 GB, free: 36.43 MB / 0.4982 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (250): * Single equations (assignments): 249 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(48,154)} Notification: Performance of Backend phase and start with SimCode phase: time 0.3139/3.561, allocations: 31.55 MB / 1.325 GB, free: 123.2 MB / 0.4982 GB Notification: Performance of simCode: created initialization part: time 0.0883/3.65, allocations: 39.92 MB / 1.364 GB, free: 116.8 MB / 0.4982 GB Notification: Performance of simCode: created event and clocks part: time 8.075e-06/3.65, allocations: 0 / 1.364 GB, free: 116.8 MB / 0.4982 GB Notification: Performance of simCode: created simulation system equations: time 0.05439/3.704, allocations: 17.28 MB / 1.38 GB, free: 113 MB / 0.4982 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01421/3.718, allocations: 3.124 MB / 1.384 GB, free: 111.8 MB / 0.4982 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 1.608/5.327, allocations: 245.6 MB / 1.623 GB, free: 88.02 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01534/5.342, allocations: 8.693 MB / 1.632 GB, free: 83.4 MB / 0.5138 GB Notification: Performance of simCode: alias equations: time 0.01551/5.358, allocations: 3.89 MB / 1.636 GB, free: 80.83 MB / 0.5138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01033/5.368, allocations: 4.994 MB / 1.641 GB, free: 75.84 MB / 0.5138 GB Notification: Performance of SimCode: time 1.092e-06/5.368, allocations: 4 kB / 1.641 GB, free: 75.83 MB / 0.5138 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8921/6.26, allocations: 393.9 MB / 2.025 GB, free: 63.43 MB / 0.5138 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001625/6.26, allocations: 228.7 kB / 2.025 GB, free: 63.17 MB / 0.5138 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.65/18.91, allocations: 0 / 2.025 GB, free: 63.17 MB / 0.5138 GB (rm -f PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleShadow.pipe ; mkfifo PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleShadow.pipe ; head -c 1048576 < PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleShadow.pipe >> ../files/PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleShadow.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PhotoVoltaics_PhotoVoltaics_Examples_SimpleModuleShadow_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PhotoVoltaics_PhotoVoltaics_Examples_SimpleModuleShadow.fmu > PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleShadow.pipe 2>&1)