Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PhotoVoltaics_PhotoVoltaics.Examples.SimplePlantSymmetric.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.SimplePlantSymmetric,fileNamePrefix="PhotoVoltaics_PhotoVoltaics_Examples_SimplePlantSymmetric",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PhotoVoltaics.Examples.SimplePlantSymmetric,fileNamePrefix="PhotoVoltaics_PhotoVoltaics_Examples_SimplePlantSymmetric",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.007671/0.007671, allocations: 101.1 kB / 15.73 MB, free: 6.039 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.001833/0.001833, allocations: 190.4 kB / 16.67 MB, free: 5.977 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.351/1.351, allocations: 222.9 MB / 240.4 MB, free: 4.184 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.1303/0.1303, allocations: 5.385 MB / 295.9 MB, free: 2.785 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001332/0.001332, allocations: 59.91 kB / 412.3 MB, free: 10.71 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2327/0.234, allocations: 50.62 MB / 462.9 MB, free: 21.34 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.Examples.SimplePlantSymmetric): time 0.004487/0.2386, allocations: 3.513 MB / 466.4 MB, free: 18.83 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001691/0.2403, allocations: 1.274 MB / 467.7 MB, free: 17.9 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002057/0.2405, allocations: 8.062 kB / 467.7 MB, free: 17.9 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006037/0.2411, allocations: 235.5 kB / 467.9 MB, free: 17.79 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004032/0.2415, allocations: 178.7 kB / 468.1 MB, free: 17.66 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002267/0.2418, allocations: 117.6 kB / 468.2 MB, free: 17.59 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006033/0.2424, allocations: 0.5976 MB / 468.8 MB, free: 17.28 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002098/0.2426, allocations: 126.8 kB / 469 MB, free: 17.21 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002199/0.2428, allocations: 228.6 kB / 469.2 MB, free: 17.1 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002825/0.2431, allocations: 273.3 kB / 469.4 MB, free: 16.97 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.92e-05/0.2432, allocations: 55 kB / 469.5 MB, free: 16.97 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000109/0.2433, allocations: 66.61 kB / 469.6 MB, free: 16.96 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.798e-05/0.2434, allocations: 113.6 kB / 469.7 MB, free: 16.89 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001935/0.2436, allocations: 244.1 kB / 469.9 MB, free: 16.73 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005692/0.2442, allocations: 0.558 MB / 470.5 MB, free: 16.5 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.467e-06/0.2442, allocations: 0 / 470.5 MB, free: 16.5 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.2442, allocations: 0 / 470.5 MB, free: 16.5 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.215e-06/0.2442, allocations: 0 / 470.5 MB, free: 16.5 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 65 * Number of variables: 65 Notification: Performance of Generate backend data structure: time 0.001781/0.246, allocations: 0.832 MB / 471.3 MB, free: 15.93 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.57e-05/0.246, allocations: 10.16 kB / 471.3 MB, free: 15.93 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.552e-05/0.2461, allocations: 61.47 kB / 471.4 MB, free: 15.87 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.188e-05/0.2462, allocations: 51.72 kB / 471.4 MB, free: 15.84 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001237/0.2474, allocations: 0.516 MB / 471.9 MB, free: 15.5 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.077e-05/0.2475, allocations: 23.5 kB / 472 MB, free: 15.49 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.278e-05/0.2475, allocations: 24.44 kB / 472 MB, free: 15.48 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007122/0.2482, allocations: 366 kB / 472.3 MB, free: 15.31 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.238e-05/0.2483, allocations: 0 / 472.3 MB, free: 15.31 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.234e-05/0.2483, allocations: 11.19 kB / 472.4 MB, free: 15.3 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.024e-06/0.2483, allocations: 5.938 kB / 472.4 MB, free: 15.3 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009408/0.2493, allocations: 373.5 kB / 472.7 MB, free: 15.19 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002099/0.2514, allocations: 1.414 MB / 474.1 MB, free: 14.2 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001045/0.2524, allocations: 448.4 kB / 474.6 MB, free: 13.97 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004582/0.2529, allocations: 163.7 kB / 474.7 MB, free: 13.92 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.665e-05/0.2529, allocations: 2.531 kB / 474.7 MB, free: 13.92 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.071e-05/0.253, allocations: 44.22 kB / 474.8 MB, free: 13.87 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.573e-06/0.253, allocations: 0 / 474.8 MB, free: 13.87 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.005602/0.2586, allocations: 1.019 MB / 475.8 MB, free: 13.56 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.22e-05/0.2586, allocations: 53.52 kB / 475.9 MB, free: 13.5 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004173/0.259, allocations: 403.1 kB / 476.2 MB, free: 13.29 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.452e-05/0.2591, allocations: 29.7 kB / 476.3 MB, free: 13.25 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001076/0.2592, allocations: 217.2 kB / 476.5 MB, free: 13.07 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.406e-05/0.2592, allocations: 77.66 kB / 476.6 MB, free: 13.01 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001298/0.2594, allocations: 71 kB / 476.6 MB, free: 12.97 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.573e-05/0.2594, allocations: 350.6 kB / 477 MB, free: 12.64 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004163/0.2599, allocations: 149.8 kB / 477.1 MB, free: 12.59 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004174/0.2603, allocations: 180.9 kB / 477.3 MB, free: 12.51 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007492/0.261, allocations: 311.1 kB / 477.6 MB, free: 12.37 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.604e-06/0.2611, allocations: 0 / 477.6 MB, free: 12.37 MB / 350.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.004051/0.2651, allocations: 0.8247 MB / 478.4 MB, free: 12.05 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.534e-05/0.2651, allocations: 4.938 kB / 478.4 MB, free: 12.05 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.063e-06/0.2652, allocations: 9.328 kB / 478.4 MB, free: 12.05 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001139/0.2663, allocations: 328.3 kB / 478.8 MB, free: 11.89 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002586/0.2666, allocations: 54.06 kB / 478.8 MB, free: 11.88 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007585/0.2742, allocations: 4.324 MB / 483.1 MB, free: 8.02 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005418/0.2747, allocations: 59.41 kB / 483.2 MB, free: 7.984 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.699e-05/0.2748, allocations: 11.05 kB / 483.2 MB, free: 7.98 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (31): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * 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): 1 system {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 {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0001903/0.275, allocations: 155.3 kB / 483.4 MB, free: 7.836 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.316e-05/0.2751, allocations: 38.34 kB / 483.4 MB, free: 7.816 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.48e-05/0.2751, allocations: 40.72 kB / 483.4 MB, free: 7.785 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.338e-06/0.2752, allocations: 10.34 kB / 483.4 MB, free: 7.777 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.817e-06/0.2752, allocations: 0 / 483.4 MB, free: 7.777 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.606e-06/0.2752, allocations: 1.156 kB / 483.4 MB, free: 7.777 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004167/0.2793, allocations: 1.175 MB / 484.6 MB, free: 6.965 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.026e-06/0.2794, allocations: 0 / 484.6 MB, free: 6.965 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001447/0.2795, allocations: 32.72 kB / 484.7 MB, free: 6.957 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006541/0.2802, allocations: 257.7 kB / 484.9 MB, free: 6.82 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.417e-05/0.2802, allocations: 9.266 kB / 484.9 MB, free: 6.812 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006095/0.2863, allocations: 2.56 MB / 487.5 MB, free: 4.738 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.637e-06/0.2863, allocations: 5.406 kB / 487.5 MB, free: 4.734 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003645/0.29, allocations: 0.7685 MB / 488.3 MB, free: 4.293 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000153/0.2902, allocations: 141.4 kB / 488.4 MB, free: 4.148 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.743e-05/0.2902, allocations: 5.828 kB / 488.4 MB, free: 4.145 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003425/0.2906, allocations: 33.25 kB / 488.4 MB, free: 4.129 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.517e-05/0.2906, allocations: 15.48 kB / 488.4 MB, free: 4.121 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.328e-05/0.2907, allocations: 8.078 kB / 488.4 MB, free: 4.117 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002809/0.2909, allocations: 276 kB / 488.7 MB, free: 3.945 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2909, allocations: 4 kB / 488.7 MB, free: 3.941 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005674/0.2915, allocations: 118.1 kB / 488.8 MB, free: 3.918 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (18): * Single equations (assignments): 17 * 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.003743/0.2953, allocations: 1.317 MB / 490.2 MB, free: 2.934 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001244/0.2965, allocations: 0.606 MB / 490.8 MB, free: 2.504 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.716e-06/0.2965, allocations: 0 / 490.8 MB, free: 2.504 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000474/0.297, allocations: 279.2 kB / 491 MB, free: 2.305 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005144/0.2975, allocations: 95.95 kB / 491.1 MB, free: 2.25 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01124/0.3088, allocations: 4.354 MB / 495.5 MB, free: 15.47 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000325/0.3091, allocations: 0.7886 MB / 496.3 MB, free: 14.73 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001902/0.3093, allocations: 47.09 kB / 496.3 MB, free: 14.7 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001617/0.3095, allocations: 122.7 kB / 496.4 MB, free: 14.6 MB / 366.1 MB Notification: Performance of SimCode: time 4.21e-07/0.3095, allocations: 1.188 kB / 496.4 MB, free: 14.6 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03242/0.3419, allocations: 12.01 MB / 0.4965 GB, free: 2.844 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.63/11.98, allocations: 5.172 kB / 0.4965 GB, free: 2.844 MB / 366.1 MB (rm -f PhotoVoltaics_PhotoVoltaics.Examples.SimplePlantSymmetric.pipe ; mkfifo PhotoVoltaics_PhotoVoltaics.Examples.SimplePlantSymmetric.pipe ; head -c 1048576 < PhotoVoltaics_PhotoVoltaics.Examples.SimplePlantSymmetric.pipe >> ../files/PhotoVoltaics_PhotoVoltaics.Examples.SimplePlantSymmetric.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PhotoVoltaics_PhotoVoltaics_Examples_SimplePlantSymmetric_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PhotoVoltaics_PhotoVoltaics_Examples_SimplePlantSymmetric.fmu > PhotoVoltaics_PhotoVoltaics.Examples.SimplePlantSymmetric.pipe 2>&1)