Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMP.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001802/0.001802, allocations: 117.1 kB / 17.16 MB, free: 5.895 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002295/0.002295, allocations: 215 kB / 20.13 MB, free: 2.949 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.437/1.437, allocations: 230.6 MB / 253.5 MB, free: 15.12 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.1.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.1.0/package.mo): time 0.0476/0.0476, allocations: 5.487 MB / 315 MB, free: 1.586 MB / 238.1 MB " [Timeout remaining time 180] Using package PhotoVoltaics with version 2.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.1.0/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(PhotoVoltaics.Examples.SimpleModuleMP,fileNamePrefix="PhotoVoltaics_PhotoVoltaics_Examples_SimpleModuleMP",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(PhotoVoltaics.Examples.SimpleModuleMP,fileNamePrefix="PhotoVoltaics_PhotoVoltaics_Examples_SimpleModuleMP",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: PhotoVoltaics requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002155/0.002155, allocations: 68.77 kB / 441.3 MB, free: 37.21 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09426/0.09642, allocations: 54.58 MB / 495.9 MB, free: 8.883 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.Examples.SimpleModuleMP): time 0.006253/0.1027, allocations: 6.391 MB / 0.4905 GB, free: 2.453 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003978/0.1066, allocations: 2.651 MB / 0.4931 GB, free: 15.79 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009114/0.1076, allocations: 16 kB / 0.4931 GB, free: 15.78 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002894/0.1105, allocations: 1.134 MB / 0.4942 GB, free: 14.64 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001821/0.1123, allocations: 0.6175 MB / 0.4948 GB, free: 14.02 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008163/0.1131, allocations: 363.3 kB / 0.4952 GB, free: 13.66 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001457/0.1145, allocations: 1.156 MB / 0.4963 GB, free: 12.5 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001241/0.1158, allocations: 0.7664 MB / 0.497 GB, free: 11.71 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006934/0.1165, allocations: 490.3 kB / 0.4975 GB, free: 11.23 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007048/0.1172, allocations: 0.5719 MB / 0.4981 GB, free: 10.66 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001677/0.1174, allocations: 128 kB / 0.4982 GB, free: 10.53 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006319/0.118, allocations: 307.8 kB / 0.4985 GB, free: 10.23 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002243/0.1182, allocations: 259.1 kB / 0.4987 GB, free: 9.977 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000522/0.1187, allocations: 0.5327 MB / 0.4992 GB, free: 9.441 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001846/0.1206, allocations: 1.506 MB / 0.5007 GB, free: 7.93 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.576e-06/0.1206, allocations: 4 kB / 0.5007 GB, free: 7.926 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.1206, allocations: 0 / 0.5007 GB, free: 7.926 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.676e-05/0.1206, allocations: 0 / 0.5007 GB, free: 7.926 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 237 * Number of variables: 237 Notification: Performance of Generate backend data structure: time 0.003898/0.1245, allocations: 1.556 MB / 0.5022 GB, free: 6.312 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.57e-05/0.1245, allocations: 12.03 kB / 0.5023 GB, free: 6.301 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.818e-05/0.1246, allocations: 22.19 kB / 0.5023 GB, free: 6.277 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001681/0.1248, allocations: 148 kB / 0.5024 GB, free: 6.125 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002129/0.1269, allocations: 355.9 kB / 0.5028 GB, free: 5.777 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001533/0.1284, allocations: 0.6945 MB / 0.5034 GB, free: 5.043 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.508e-05/0.1285, allocations: 73.94 kB / 0.5035 GB, free: 4.969 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001443/0.1286, allocations: 92 kB / 0.5036 GB, free: 4.879 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001836/0.1305, allocations: 0.9932 MB / 0.5046 GB, free: 3.859 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.351e-05/0.1305, allocations: 7.984 kB / 0.5046 GB, free: 3.852 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.075e-05/0.1306, allocations: 36 kB / 0.5046 GB, free: 3.816 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.54e-05/0.1306, allocations: 28 kB / 0.5046 GB, free: 3.789 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001755/0.1324, allocations: 0.8393 MB / 0.5054 GB, free: 2.949 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006206/0.1386, allocations: 4.098 MB / 0.5095 GB, free: 14.6 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0022/0.1408, allocations: 1.434 MB / 0.5109 GB, free: 12.95 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005/0.1413, allocations: 214 kB / 0.5111 GB, free: 12.73 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001699/0.1414, allocations: 174.2 kB / 0.5112 GB, free: 12.52 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006087/0.1421, allocations: 317.8 kB / 0.5115 GB, free: 12.19 MB / 382.1 MB Notification: Performance of pre-optimization done (n=47): time 7.053e-06/0.1421, allocations: 3.984 kB / 0.5115 GB, free: 12.18 MB / 382.1 MB Notification: Performance of matching and sorting (n=47): time 0.002796/0.1449, allocations: 0.9266 MB / 0.5124 GB, free: 11.23 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.332e-05/0.145, allocations: 144.4 kB / 0.5126 GB, free: 11.05 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007203/0.1457, allocations: 0.4941 MB / 0.5131 GB, free: 10.55 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.682e-05/0.1457, allocations: 37.7 kB / 0.5131 GB, free: 10.5 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003861/0.1461, allocations: 479.6 kB / 0.5135 GB, free: 10.03 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001555/0.1463, allocations: 170.6 kB / 0.5137 GB, free: 9.859 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002372/0.1465, allocations: 146.6 kB / 0.5138 GB, free: 9.711 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001825/0.1467, allocations: 362.8 kB / 0.5142 GB, free: 9.348 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005348/0.1472, allocations: 237.9 kB / 0.5144 GB, free: 9.113 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006708/0.1479, allocations: 420.8 kB / 0.5148 GB, free: 8.621 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001212/0.1491, allocations: 0.7053 MB / 0.5155 GB, free: 7.824 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.26e-06/0.1491, allocations: 4 kB / 0.5155 GB, free: 7.82 MB / 382.1 MB Notification: Performance of matching and sorting (n=93) (initialization): time 0.001949/0.1511, allocations: 0.8565 MB / 0.5164 GB, free: 6.949 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.765e-05/0.1511, allocations: 33.7 kB / 0.5164 GB, free: 6.91 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.278e-05/0.1511, allocations: 4 kB / 0.5164 GB, free: 6.906 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004936/0.1516, allocations: 84.78 kB / 0.5165 GB, free: 6.82 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007067/0.1523, allocations: 171.9 kB / 0.5166 GB, free: 6.652 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001716/0.154, allocations: 1.578 MB / 0.5182 GB, free: 4.926 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006645/0.1547, allocations: 99.42 kB / 0.5183 GB, free: 4.828 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.552e-05/0.1548, allocations: 35.98 kB / 0.5183 GB, free: 4.793 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 26 * Number of states: 0 () * Number of discrete variables: 11 (mpTracker.signv,$PRE.mpTracker.signv,mpTracker.firstTrigger,$PRE.mpTracker.firstTrigger,mpTracker.counter,$PRE.mpTracker.counter,mpTracker.sampleTrigger,$whenCondition1,mpTracker.vRef,$PRE.mpTracker.vRef,converter.integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (91): * Single equations (assignments): 89 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * 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): 1 system {2} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004258/0.1552, allocations: 271.6 kB / 0.5186 GB, free: 4.512 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000111/0.1553, allocations: 59.62 kB / 0.5186 GB, free: 4.453 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00152/0.1568, allocations: 0.6617 MB / 0.5193 GB, free: 3.773 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.945e-06/0.1568, allocations: 7.938 kB / 0.5193 GB, free: 3.766 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.475e-06/0.1568, allocations: 0 / 0.5193 GB, free: 3.766 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.743e-06/0.1568, allocations: 7.938 kB / 0.5193 GB, free: 3.758 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002998/0.1598, allocations: 1.552 MB / 0.5208 GB, free: 2.137 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.198e-06/0.1598, allocations: 0 / 0.5208 GB, free: 2.137 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003387/0.1602, allocations: 75.91 kB / 0.5209 GB, free: 2.062 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006228/0.1608, allocations: 258.4 kB / 0.5211 GB, free: 1.801 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.182e-05/0.1608, allocations: 15.98 kB / 0.5211 GB, free: 1.785 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001135/0.162, allocations: 0.8272 MB / 0.5219 GB, free: 0.9258 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.162, allocations: 4.062 kB / 0.5219 GB, free: 0.9219 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002225/0.1642, allocations: 1.003 MB / 0.5229 GB, free: 15.88 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002947/0.1645, allocations: 184.7 kB / 0.5231 GB, free: 15.68 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.138e-05/0.1646, allocations: 12 kB / 0.5231 GB, free: 15.67 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004386/0.165, allocations: 35.97 kB / 0.5231 GB, free: 15.64 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.132e-05/0.1651, allocations: 27.97 kB / 0.5232 GB, free: 15.61 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.966e-05/0.1652, allocations: 15.92 kB / 0.5232 GB, free: 15.59 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0004883/0.1656, allocations: 350.9 kB / 0.5235 GB, free: 15.25 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1656, allocations: 4 kB / 0.5235 GB, free: 15.25 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0008184/0.1665, allocations: 243.3 kB / 0.5238 GB, free: 15.01 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (converter.integrator.y,voltageSource.pin_p.reference.gamma) * Number of discrete variables: 6 ($whenCondition1,mpTracker.firstTrigger,mpTracker.sampleTrigger,mpTracker.counter,mpTracker.signv,mpTracker.vRef) * Number of discrete states: 7 (mpTracker.signv,mpTracker.vRef,mpTracker.firstTrigger,mpTracker.counter,$whenCondition1,mpTracker.sampleTrigger,mpTracker.power) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (41): * Single equations (assignments): 40 * 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 {(1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002735/0.1692, allocations: 1.603 MB / 0.5253 GB, free: 13.38 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001604/0.1708, allocations: 0.7338 MB / 0.526 GB, free: 12.62 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.1708, allocations: 384 / 0.526 GB, free: 12.62 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006094/0.1714, allocations: 291.4 kB / 0.5263 GB, free: 12.32 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006588/0.1721, allocations: 108.5 kB / 0.5264 GB, free: 12.22 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00936/0.1814, allocations: 5.526 MB / 0.5318 GB, free: 6.414 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006188/0.1821, allocations: 0.9484 MB / 0.5327 GB, free: 5.434 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0003408/0.1824, allocations: 88.97 kB / 0.5328 GB, free: 5.344 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004108/0.1828, allocations: 299.3 kB / 0.5331 GB, free: 5.051 MB / 398.1 MB Notification: Performance of SimCode: time 1.042e-06/0.1828, allocations: 0 / 0.5331 GB, free: 5.051 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03869/0.2215, allocations: 14.71 MB / 0.5475 GB, free: 6.512 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.03/14.26, allocations: 8 kB / 0.5475 GB, free: 6.504 MB / 414.1 MB " [Timeout remaining time 646] (rm -f PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMP.pipe ; mkfifo PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMP.pipe ; head -c 1048576 < PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMP.pipe >> ../files/PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMP.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PhotoVoltaics_PhotoVoltaics_Examples_SimpleModuleMP_fmu --startTime=0 --stopTime=300 --stepSize=0.1 --timeout=50 --tolerance=1e-06 PhotoVoltaics_PhotoVoltaics_Examples_SimpleModuleMP.fmu > PhotoVoltaics_PhotoVoltaics.Examples.SimpleModuleMP.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 17.061827958968934] Failed to read output from testmodel.py, exit status != 0: 14.411167789017782 14.433541197 14.308834277 Calling exit ...