Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Measurement_20160629.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_Trina_Measurement_20160629,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Trina_Measurement_20160629",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PhotoVoltaics_TGM.TGM_Trina_Measurement_20160629,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Trina_Measurement_20160629",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.02872/0.02872, allocations: 5.396 MB / 21.03 MB, free: 1.633 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.006498/0.006498, allocations: 106 kB / 23.03 MB, free: 0.8203 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.001255/0.001255, allocations: 192.2 kB / 25.14 MB, free: 208 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.28/1.28, allocations: 222.9 MB / 250 MB, free: 8.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.01003/0.01003, allocations: 2.311 MB / 303.7 MB, free: 6.469 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001601/0.001601, allocations: 99.84 kB / 419.1 MB, free: 23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07906/0.08068, allocations: 51.21 MB / 470.4 MB, free: 3.734 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Trina_Measurement_20160629): time 0.007904/0.08861, allocations: 6.853 MB / 477.2 MB, free: 12.85 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005901/0.09455, allocations: 3.943 MB / 481.2 MB, free: 8.891 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001196/0.09577, allocations: 23.94 kB / 481.2 MB, free: 8.867 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002825/0.09861, allocations: 1.154 MB / 482.3 MB, free: 7.711 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002102/0.1007, allocations: 0.8545 MB / 483.2 MB, free: 6.852 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00159/0.1023, allocations: 0.5443 MB / 483.7 MB, free: 6.312 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001443/0.1038, allocations: 1.413 MB / 485.1 MB, free: 4.895 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001285/0.1051, allocations: 1.018 MB / 486.2 MB, free: 3.848 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006268/0.1057, allocations: 0.5565 MB / 486.7 MB, free: 3.289 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007215/0.1064, allocations: 0.6925 MB / 487.4 MB, free: 2.594 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001583/0.1066, allocations: 144 kB / 487.5 MB, free: 2.453 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007658/0.1074, allocations: 439.7 kB / 488 MB, free: 2.023 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00024/0.1076, allocations: 310.9 kB / 488.3 MB, free: 1.719 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005357/0.1082, allocations: 0.6414 MB / 488.9 MB, free: 1.074 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00178/0.11, allocations: 1.791 MB / 490.7 MB, free: 15.28 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.271e-06/0.11, allocations: 3.984 kB / 490.7 MB, free: 15.27 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.11, allocations: 0 / 490.7 MB, free: 15.27 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.862e-05/0.11, allocations: 4 kB / 490.7 MB, free: 15.27 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: 269 * Number of variables: 269 Notification: Performance of Generate backend data structure: time 0.003978/0.114, allocations: 1.806 MB / 492.5 MB, free: 13.4 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.221e-05/0.1141, allocations: 12.03 kB / 492.5 MB, free: 13.39 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001769/0.1142, allocations: 164.9 kB / 492.7 MB, free: 13.21 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002048/0.1163, allocations: 379.1 kB / 493.1 MB, free: 12.84 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001762/0.1181, allocations: 0.832 MB / 493.9 MB, free: 11.97 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.682e-05/0.1182, allocations: 78.08 kB / 494 MB, free: 11.89 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001486/0.1183, allocations: 112 kB / 494.1 MB, free: 11.78 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001887/0.1202, allocations: 1.165 MB / 495.3 MB, free: 10.55 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.615e-05/0.1202, allocations: 4 kB / 495.3 MB, free: 10.55 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000104/0.1204, allocations: 48 kB / 495.3 MB, free: 10.5 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.267e-05/0.1204, allocations: 24 kB / 495.3 MB, free: 10.48 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001952/0.1223, allocations: 1.066 MB / 496.4 MB, free: 9.414 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005739/0.1281, allocations: 4.349 MB / 0.489 GB, free: 4.863 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002451/0.1306, allocations: 1.74 MB / 0.4907 GB, free: 2.91 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006197/0.1312, allocations: 326.3 kB / 0.491 GB, free: 2.59 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.015e-05/0.1313, allocations: 101.6 kB / 0.4911 GB, free: 2.473 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007962/0.1321, allocations: 465.7 kB / 0.4916 GB, free: 1.988 MB / 366.1 MB Notification: Performance of pre-optimization done (n=69): time 2.494e-06/0.1321, allocations: 0 / 0.4916 GB, free: 1.988 MB / 366.1 MB Notification: Performance of matching and sorting (n=69): time 0.006021/0.1381, allocations: 1.588 MB / 0.4931 GB, free: 368 kB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001023/0.1383, allocations: 226.2 kB / 0.4933 GB, free: 92 kB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007621/0.139, allocations: 0.6524 MB / 0.494 GB, free: 15.43 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.343e-05/0.1391, allocations: 45.7 kB / 0.494 GB, free: 15.38 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003471/0.1394, allocations: 0.5219 MB / 0.4945 GB, free: 14.84 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001686/0.1396, allocations: 228.8 kB / 0.4947 GB, free: 14.62 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002574/0.1399, allocations: 182.5 kB / 0.4949 GB, free: 14.43 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001467/0.14, allocations: 386.8 kB / 0.4953 GB, free: 14.04 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006224/0.1407, allocations: 297.8 kB / 0.4956 GB, free: 13.75 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007609/0.1414, allocations: 0.5387 MB / 0.4961 GB, free: 13.11 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001398/0.1428, allocations: 0.9399 MB / 0.497 GB, free: 12.05 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.758e-06/0.1429, allocations: 0 / 0.497 GB, free: 12.05 MB / 382.1 MB Notification: Performance of matching and sorting (n=121) (initialization): time 0.00214/0.145, allocations: 1.114 MB / 0.4981 GB, free: 10.92 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.984e-05/0.1451, allocations: 65.91 kB / 0.4982 GB, free: 10.84 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.271e-05/0.1451, allocations: 8.281 kB / 0.4982 GB, free: 10.84 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000498/0.1456, allocations: 92.7 kB / 0.4983 GB, free: 10.74 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000868/0.1465, allocations: 227.6 kB / 0.4985 GB, free: 10.52 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001473/0.148, allocations: 1.578 MB / 0.5 GB, free: 8.793 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007402/0.1487, allocations: 115 kB / 0.5001 GB, free: 8.68 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.628e-05/0.1488, allocations: 43.98 kB / 0.5002 GB, free: 8.637 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 32 * Number of states: 0 () * Number of discrete variables: 21 (writeCSV.firstTrigger,$PRE.writeCSV.firstTrigger,mpTracker.signv,$PRE.mpTracker.signv,mpTracker.firstTrigger,$PRE.mpTracker.firstTrigger,mpTracker.counter,$PRE.mpTracker.counter,$PRE.combiTimeTable.nextTimeEvent,$whenCondition3,writeCSV.sampleTrigger,$whenCondition2,mpTracker.sampleTrigger,$whenCondition1,combiTimeTable.nextTimeEventScaled,$PRE.combiTimeTable.nextTimeEventScaled,combiTimeTable.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 (118): * Single equations (assignments): 115 * 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.0004471/0.1492, allocations: 343.2 kB / 0.5005 GB, free: 8.281 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001373/0.1494, allocations: 79.06 kB / 0.5006 GB, free: 8.203 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002007/0.1514, allocations: 1.01 MB / 0.5015 GB, free: 7.164 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.272e-06/0.1514, allocations: 4 kB / 0.5016 GB, free: 7.16 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.516e-06/0.1514, allocations: 4 kB / 0.5016 GB, free: 7.156 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.748e-06/0.1514, allocations: 3.984 kB / 0.5016 GB, free: 7.152 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006141/0.1576, allocations: 2.302 MB / 0.5038 GB, free: 4.773 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.042e-06/0.1576, allocations: 4 kB / 0.5038 GB, free: 4.77 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003821/0.158, allocations: 103.9 kB / 0.5039 GB, free: 4.668 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008026/0.1588, allocations: 326.2 kB / 0.5042 GB, free: 4.34 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.514e-05/0.1589, allocations: 27.97 kB / 0.5042 GB, free: 4.312 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001274/0.1602, allocations: 0.8935 MB / 0.5051 GB, free: 3.387 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.898e-06/0.1602, allocations: 4.031 kB / 0.5051 GB, free: 3.383 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002607/0.1628, allocations: 1.405 MB / 0.5065 GB, free: 1.938 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003195/0.1631, allocations: 224 kB / 0.5067 GB, free: 1.699 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001347/0.1633, allocations: 20 kB / 0.5067 GB, free: 1.68 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005717/0.1638, allocations: 51.95 kB / 0.5068 GB, free: 1.629 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.054e-05/0.1639, allocations: 36.52 kB / 0.5068 GB, free: 1.59 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.063e-05/0.164, allocations: 35.97 kB / 0.5068 GB, free: 1.555 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005254/0.1645, allocations: 455 kB / 0.5073 GB, free: 1.117 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.1645, allocations: 0 / 0.5073 GB, free: 1.117 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009201/0.1655, allocations: 323 kB / 0.5076 GB, free: 0.8008 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 3 (voltageSource.pin_p.reference.gamma,converter.integrator.y,integrator.y) * Number of discrete variables: 12 ($whenCondition3,$whenCondition1,$whenCondition2,mpTracker.firstTrigger,mpTracker.sampleTrigger,mpTracker.counter,mpTracker.signv,mpTracker.vRef,combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEventScaled,writeCSV.sampleTrigger,writeCSV.firstTrigger) * Number of discrete states: 12 (combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEventScaled,mpTracker.signv,mpTracker.vRef,mpTracker.firstTrigger,mpTracker.counter,$whenCondition1,mpTracker.sampleTrigger,mpTracker.power,writeCSV.firstTrigger,$whenCondition2,writeCSV.sampleTrigger) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (60): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 2 * 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.1819/0.3474, allocations: 2.506 MB / 0.51 GB, free: 45.39 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001977/0.3494, allocations: 0.9902 MB / 0.511 GB, free: 45.14 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.058e-06/0.3494, allocations: 1 kB / 0.511 GB, free: 45.14 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008547/0.3503, allocations: 0.4947 MB / 0.5115 GB, free: 45.02 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009012/0.3512, allocations: 154.7 kB / 0.5116 GB, free: 45.01 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01082/0.362, allocations: 7.045 MB / 0.5185 GB, free: 41.46 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000566/0.3626, allocations: 1.017 MB / 0.5195 GB, free: 40.73 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005106/0.3631, allocations: 137.8 kB / 0.5196 GB, free: 40.69 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004585/0.3636, allocations: 400.9 kB / 0.52 GB, free: 40.39 MB / 382.1 MB Notification: Performance of SimCode: time 6.61e-07/0.3636, allocations: 0 / 0.52 GB, free: 40.39 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04255/0.4062, allocations: 20.87 MB / 0.5404 GB, free: 28.41 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.18/15.59, allocations: 8 kB / 0.5404 GB, free: 28.4 MB / 382.1 MB (rm -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Measurement_20160629.pipe ; mkfifo PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Measurement_20160629.pipe ; head -c 1048576 < PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Measurement_20160629.pipe >> ../files/PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Measurement_20160629.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Trina_Measurement_20160629_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-08 PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Trina_Measurement_20160629.fmu > PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Measurement_20160629.pipe 2>&1)