Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160704.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo", uses=false) 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_TGM 2.0.0/package.mo", uses=false) Using package PhotoVoltaics_TGM with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 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) Using package PhotoVoltaics with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo) Running command: "" <> buildModelFMU(PhotoVoltaics_TGM.TGM_Comax_Measurement_20160704,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Measurement_20160704",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PhotoVoltaics_TGM.TGM_Comax_Measurement_20160704,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Measurement_20160704",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.02916/0.02916, allocations: 5.396 MB / 21.03 MB, free: 1.637 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007312/0.007312, allocations: 101.9 kB / 23.02 MB, free: 0.8047 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.001189/0.001189, allocations: 194.9 kB / 25.14 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.29/1.29, allocations: 222.9 MB / 250 MB, free: 8.426 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.009626/0.009626, allocations: 2.324 MB / 303.7 MB, free: 6.488 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001612/0.001612, allocations: 91.86 kB / 419.1 MB, free: 23.01 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08557/0.0872, allocations: 51.22 MB / 470.3 MB, free: 3.754 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Comax_Measurement_20160704): time 0.008521/0.09576, allocations: 6.896 MB / 477.2 MB, free: 12.82 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0069/0.1027, allocations: 4.013 MB / 481.3 MB, free: 8.797 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001137/0.1039, allocations: 23.94 kB / 481.3 MB, free: 8.773 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0034/0.1073, allocations: 1.174 MB / 482.5 MB, free: 7.594 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002759/0.1101, allocations: 0.8891 MB / 483.3 MB, free: 6.703 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002133/0.1122, allocations: 0.6082 MB / 484 MB, free: 6.102 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002362/0.1146, allocations: 1.413 MB / 485.4 MB, free: 4.684 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002014/0.1166, allocations: 1.014 MB / 486.4 MB, free: 3.641 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001051/0.1177, allocations: 0.5642 MB / 486.9 MB, free: 3.074 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001175/0.1189, allocations: 0.6847 MB / 487.6 MB, free: 2.387 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003502/0.1192, allocations: 140 kB / 487.8 MB, free: 2.25 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001063/0.1203, allocations: 435.6 kB / 488.2 MB, free: 1.824 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003569/0.1207, allocations: 294.9 kB / 488.5 MB, free: 1.535 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008763/0.1216, allocations: 0.6336 MB / 489.1 MB, free: 0.8984 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002491/0.1241, allocations: 1.76 MB / 490.9 MB, free: 15.13 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.991e-06/0.1241, allocations: 8 kB / 490.9 MB, free: 15.12 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.1241, allocations: 0 / 490.9 MB, free: 15.12 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.847e-05/0.1242, allocations: 0 / 490.9 MB, free: 15.12 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: 258 * Number of variables: 258 Notification: Performance of Generate backend data structure: time 0.004785/0.129, allocations: 1.794 MB / 492.7 MB, free: 13.27 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.005e-05/0.129, allocations: 8.031 kB / 492.7 MB, free: 13.26 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002707/0.1293, allocations: 156.6 kB / 492.8 MB, free: 13.1 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002236/0.1315, allocations: 379.1 kB / 493.2 MB, free: 12.73 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002063/0.1336, allocations: 0.8202 MB / 494 MB, free: 11.86 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.939e-05/0.1337, allocations: 78 kB / 494.1 MB, free: 11.79 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002039/0.1339, allocations: 100 kB / 494.2 MB, free: 11.69 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002243/0.1362, allocations: 1.138 MB / 495.3 MB, free: 10.5 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.193e-05/0.1362, allocations: 3.984 kB / 495.3 MB, free: 10.49 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001049/0.1363, allocations: 40 kB / 495.4 MB, free: 10.45 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.125e-05/0.1364, allocations: 24 kB / 495.4 MB, free: 10.43 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002096/0.1385, allocations: 0.9524 MB / 496.4 MB, free: 9.477 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006664/0.1451, allocations: 4.303 MB / 0.4889 GB, free: 4.969 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002646/0.1478, allocations: 1.662 MB / 0.4905 GB, free: 3.082 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006949/0.1485, allocations: 323.9 kB / 0.4909 GB, free: 2.754 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001078/0.1487, allocations: 93.47 kB / 0.4909 GB, free: 2.645 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008935/0.1496, allocations: 458.6 kB / 0.4914 GB, free: 2.168 MB / 366.1 MB Notification: Performance of pre-optimization done (n=66): time 3.697e-06/0.1496, allocations: 0 / 0.4914 GB, free: 2.168 MB / 366.1 MB Notification: Performance of matching and sorting (n=66): time 0.006021/0.1556, allocations: 1.545 MB / 0.4929 GB, free: 0.582 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001369/0.1558, allocations: 281.6 kB / 0.4932 GB, free: 252 kB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001043/0.1568, allocations: 0.6603 MB / 0.4938 GB, free: 15.57 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.771e-05/0.1569, allocations: 41.7 kB / 0.4938 GB, free: 15.53 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004192/0.1573, allocations: 0.5218 MB / 0.4944 GB, free: 15 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002093/0.1575, allocations: 217 kB / 0.4946 GB, free: 14.78 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002951/0.1579, allocations: 190.4 kB / 0.4947 GB, free: 14.59 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000172/0.158, allocations: 382.8 kB / 0.4951 GB, free: 14.2 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006639/0.1587, allocations: 285.8 kB / 0.4954 GB, free: 13.93 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000806/0.1595, allocations: 0.5363 MB / 0.4959 GB, free: 13.28 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001456/0.161, allocations: 0.9254 MB / 0.4968 GB, free: 12.23 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.418e-06/0.161, allocations: 4 kB / 0.4968 GB, free: 12.23 MB / 382.1 MB Notification: Performance of matching and sorting (n=120) (initialization): time 0.002334/0.1633, allocations: 1.059 MB / 0.4978 GB, free: 11.14 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.207e-05/0.1634, allocations: 67.39 kB / 0.4979 GB, free: 11.07 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.444e-05/0.1634, allocations: 8 kB / 0.4979 GB, free: 11.06 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004941/0.1639, allocations: 89.06 kB / 0.498 GB, free: 10.97 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008777/0.1648, allocations: 215.6 kB / 0.4982 GB, free: 10.76 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001571/0.1664, allocations: 1.59 MB / 0.4998 GB, free: 9.023 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008619/0.1673, allocations: 111 kB / 0.4999 GB, free: 8.914 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.95e-05/0.1674, allocations: 47.97 kB / 0.4999 GB, free: 8.867 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 34 * Number of states: 0 () * Number of discrete variables: 26 (writeCSV.firstTrigger,$PRE.writeCSV.firstTrigger,mpTracker.signv,$PRE.mpTracker.signv,mpTracker.firstTrigger,$PRE.mpTracker.firstTrigger,mpTracker.counter,$PRE.mpTracker.counter,$PRE.irradianceTable.nextTimeEvent,$whenCondition4,writeCSV.sampleTrigger,$whenCondition3,mpTracker.sampleTrigger,$whenCondition2,$PRE.powerTable.nextTimeEvent,$whenCondition1,powerTable.nextTimeEventScaled,$PRE.powerTable.nextTimeEventScaled,powerTable.nextTimeEvent,irradianceTable.nextTimeEventScaled,$PRE.irradianceTable.nextTimeEventScaled,irradianceTable.nextTimeEvent,mpTracker.vRef,$PRE.mpTracker.vRef,integrator.local_reset,converter.integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (117): * Single equations (assignments): 114 * Array equations: 0 * Algorithm blocks: 2 * 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.0005157/0.1679, allocations: 339.6 kB / 0.5002 GB, free: 8.512 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002054/0.1681, allocations: 83 kB / 0.5003 GB, free: 8.43 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002034/0.1702, allocations: 0.9091 MB / 0.5012 GB, free: 7.496 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.468e-06/0.1702, allocations: 4 kB / 0.5012 GB, free: 7.492 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.597e-06/0.1702, allocations: 7.938 kB / 0.5012 GB, free: 7.484 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.037e-06/0.1702, allocations: 3.984 kB / 0.5012 GB, free: 7.48 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006618/0.1768, allocations: 2.199 MB / 0.5034 GB, free: 5.199 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.534e-06/0.1769, allocations: 0 / 0.5034 GB, free: 5.199 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003804/0.1773, allocations: 91.92 kB / 0.5035 GB, free: 5.109 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008724/0.1781, allocations: 330.2 kB / 0.5038 GB, free: 4.777 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.033e-05/0.1782, allocations: 23.97 kB / 0.5038 GB, free: 4.754 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001358/0.1796, allocations: 0.8897 MB / 0.5047 GB, free: 3.832 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.458e-06/0.1796, allocations: 3.938 kB / 0.5047 GB, free: 3.828 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00575/0.1854, allocations: 1.639 MB / 0.5063 GB, free: 2.145 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005026/0.1859, allocations: 219.9 kB / 0.5065 GB, free: 1.91 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002243/0.1862, allocations: 16 kB / 0.5065 GB, free: 1.895 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006841/0.1868, allocations: 51.95 kB / 0.5065 GB, free: 1.844 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001067/0.187, allocations: 44.33 kB / 0.5066 GB, free: 1.801 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.659e-05/0.187, allocations: 27.97 kB / 0.5066 GB, free: 1.773 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006862/0.1877, allocations: 467 kB / 0.5071 GB, free: 1.32 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1877, allocations: 0 / 0.5071 GB, free: 1.32 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001102/0.1889, allocations: 319 kB / 0.5074 GB, free: 1.008 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (voltageSource.pin_p.reference.gamma,converter.integrator.y,integrator.y) * Number of discrete variables: 15 ($whenCondition1,powerTable.nextTimeEvent,powerTable.nextTimeEventScaled,$whenCondition4,$whenCondition2,$whenCondition3,mpTracker.firstTrigger,mpTracker.sampleTrigger,mpTracker.counter,mpTracker.signv,mpTracker.vRef,writeCSV.sampleTrigger,writeCSV.firstTrigger,irradianceTable.nextTimeEvent,irradianceTable.nextTimeEventScaled) * Number of discrete states: 14 (irradianceTable.nextTimeEvent,irradianceTable.nextTimeEventScaled,mpTracker.signv,mpTracker.vRef,mpTracker.firstTrigger,mpTracker.counter,$whenCondition2,mpTracker.sampleTrigger,mpTracker.power,writeCSV.firstTrigger,$whenCondition3,writeCSV.sampleTrigger,powerTable.nextTimeEventScaled,powerTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (57): * Single equations (assignments): 51 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 4 * 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,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.1958/0.3847, allocations: 2.732 MB / 0.51 GB, free: 45.51 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002054/0.3868, allocations: 0.9695 MB / 0.511 GB, free: 45.27 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.727e-06/0.3868, allocations: 0 / 0.511 GB, free: 45.27 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000858/0.3877, allocations: 484.4 kB / 0.5114 GB, free: 45.14 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009941/0.3887, allocations: 169.4 kB / 0.5116 GB, free: 45.12 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01077/0.3994, allocations: 6.977 MB / 0.5184 GB, free: 41.64 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007357/0.4002, allocations: 1.008 MB / 0.5194 GB, free: 40.93 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005387/0.4008, allocations: 117.2 kB / 0.5195 GB, free: 40.89 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004732/0.4013, allocations: 392.8 kB / 0.5199 GB, free: 40.61 MB / 382.1 MB Notification: Performance of SimCode: time 1.042e-06/0.4013, allocations: 0 / 0.5199 GB, free: 40.61 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04876/0.45, allocations: 20.98 MB / 0.5404 GB, free: 28.64 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.09/15.54, allocations: 5.203 kB / 0.5404 GB, free: 28.63 MB / 382.1 MB (rm -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160704.pipe ; mkfifo PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160704.pipe ; head -c 1048576 < PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160704.pipe >> ../files/PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160704.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Measurement_20160704_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-08 PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Measurement_20160704.fmu > PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160704.pipe 2>&1)