Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_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_Trina_Measurement_20160704,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Trina_Measurement_20160704",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PhotoVoltaics_TGM.TGM_Trina_Measurement_20160704,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Trina_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.03438/0.03438, allocations: 5.396 MB / 21.03 MB, free: 1.621 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.00748/0.00748, allocations: 88.73 kB / 23.03 MB, free: 0.8086 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.001374/0.001374, allocations: 190.2 kB / 25.14 MB, free: 196 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.354/1.354, allocations: 222.9 MB / 250 MB, free: 8.402 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.009679/0.009679, allocations: 2.329 MB / 303.7 MB, free: 6.477 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002592/0.002592, allocations: 95.86 kB / 419.1 MB, free: 23.01 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07567/0.07828, allocations: 51.21 MB / 470.4 MB, free: 3.754 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Trina_Measurement_20160704): time 0.008318/0.08664, allocations: 6.858 MB / 477.2 MB, free: 12.86 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005728/0.09239, allocations: 3.935 MB / 481.1 MB, free: 8.91 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004515/0.09286, allocations: 23.94 kB / 481.2 MB, free: 8.887 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0025/0.09537, allocations: 1.17 MB / 482.3 MB, free: 7.715 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001698/0.09708, allocations: 0.8467 MB / 483.2 MB, free: 6.863 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00142/0.09851, allocations: 0.5543 MB / 483.7 MB, free: 6.316 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001372/0.09989, allocations: 1.413 MB / 485.2 MB, free: 4.898 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001289/0.1012, allocations: 1.009 MB / 486.2 MB, free: 3.859 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005692/0.1018, allocations: 0.5565 MB / 486.7 MB, free: 3.301 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007986/0.1026, allocations: 0.6925 MB / 487.4 MB, free: 2.605 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001828/0.1028, allocations: 144 kB / 487.6 MB, free: 2.465 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007089/0.1035, allocations: 435.7 kB / 488 MB, free: 2.039 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002716/0.1038, allocations: 310.9 kB / 488.3 MB, free: 1.734 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000599/0.1044, allocations: 0.6492 MB / 488.9 MB, free: 1.082 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001929/0.1063, allocations: 1.806 MB / 490.7 MB, free: 15.27 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.567e-06/0.1063, allocations: 0 / 490.7 MB, free: 15.27 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.116e-06/0.1063, allocations: 0 / 490.7 MB, free: 15.27 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.456e-05/0.1064, allocations: 3.938 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.003919/0.1103, allocations: 1.839 MB / 492.6 MB, free: 13.36 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.259e-05/0.1103, allocations: 12.03 kB / 492.6 MB, free: 13.35 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001921/0.1105, allocations: 160.9 kB / 492.8 MB, free: 13.18 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002117/0.1126, allocations: 391.8 kB / 493.1 MB, free: 12.8 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001694/0.1144, allocations: 0.8287 MB / 494 MB, free: 11.93 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.344e-05/0.1144, allocations: 86.02 kB / 494 MB, free: 11.84 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001559/0.1146, allocations: 108 kB / 494.2 MB, free: 11.73 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002062/0.1167, allocations: 1.169 MB / 495.3 MB, free: 10.5 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.914e-05/0.1167, allocations: 4 kB / 495.3 MB, free: 10.5 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.953e-05/0.1168, allocations: 44 kB / 495.4 MB, free: 10.46 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.834e-05/0.1169, allocations: 28 kB / 495.4 MB, free: 10.43 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002132/0.119, allocations: 1.07 MB / 496.5 MB, free: 9.359 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006162/0.1252, allocations: 4.358 MB / 0.4891 GB, free: 4.801 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002751/0.1279, allocations: 1.732 MB / 0.4908 GB, free: 2.855 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006824/0.1286, allocations: 326.3 kB / 0.4911 GB, free: 2.535 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.791e-05/0.1287, allocations: 97.66 kB / 0.4912 GB, free: 2.422 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008461/0.1296, allocations: 465.7 kB / 0.4916 GB, free: 1.938 MB / 366.1 MB Notification: Performance of pre-optimization done (n=69): time 3.727e-06/0.1296, allocations: 3.984 kB / 0.4916 GB, free: 1.934 MB / 366.1 MB Notification: Performance of matching and sorting (n=69): time 0.005539/0.1352, allocations: 1.593 MB / 0.4932 GB, free: 308 kB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001329/0.1353, allocations: 230.1 kB / 0.4934 GB, free: 28 kB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007876/0.1361, allocations: 0.6486 MB / 0.494 GB, free: 15.37 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.591e-05/0.1362, allocations: 45.7 kB / 0.4941 GB, free: 15.32 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003976/0.1366, allocations: 0.535 MB / 0.4946 GB, free: 14.77 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001949/0.1368, allocations: 246 kB / 0.4948 GB, free: 14.53 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002793/0.1371, allocations: 190.5 kB / 0.495 GB, free: 14.34 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001879/0.1373, allocations: 390.7 kB / 0.4954 GB, free: 13.95 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006484/0.1379, allocations: 293.8 kB / 0.4957 GB, free: 13.66 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008285/0.1387, allocations: 0.5387 MB / 0.4962 GB, free: 13.02 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001496/0.1402, allocations: 0.9321 MB / 0.4971 GB, free: 11.97 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.693e-06/0.1403, allocations: 8 kB / 0.4971 GB, free: 11.96 MB / 382.1 MB Notification: Performance of matching and sorting (n=121) (initialization): time 0.002163/0.1424, allocations: 1.11 MB / 0.4982 GB, free: 10.83 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.914e-05/0.1425, allocations: 71.39 kB / 0.4983 GB, free: 10.75 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.075e-05/0.1425, allocations: 8 kB / 0.4983 GB, free: 10.74 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004363/0.143, allocations: 89 kB / 0.4984 GB, free: 10.65 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008136/0.1438, allocations: 215.7 kB / 0.4986 GB, free: 10.44 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001555/0.1454, allocations: 1.589 MB / 0.5001 GB, free: 8.699 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006441/0.146, allocations: 107.3 kB / 0.5002 GB, free: 8.594 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.814e-05/0.1461, allocations: 47.97 kB / 0.5003 GB, free: 8.547 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.000401/0.1465, allocations: 343.1 kB / 0.5006 GB, free: 8.191 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001348/0.1467, allocations: 87.55 kB / 0.5007 GB, free: 8.105 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002088/0.1488, allocations: 1.01 MB / 0.5017 GB, free: 7.066 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.151e-06/0.1488, allocations: 4 kB / 0.5017 GB, free: 7.062 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.834e-06/0.1488, allocations: 0 / 0.5017 GB, free: 7.062 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.076e-05/0.1488, allocations: 7.984 kB / 0.5017 GB, free: 7.055 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005776/0.1546, allocations: 2.294 MB / 0.5039 GB, free: 4.684 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.006e-06/0.1546, allocations: 0 / 0.5039 GB, free: 4.684 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003686/0.155, allocations: 99.83 kB / 0.504 GB, free: 4.586 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008126/0.1558, allocations: 334.3 kB / 0.5043 GB, free: 4.25 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.493e-05/0.1559, allocations: 23.97 kB / 0.5044 GB, free: 4.227 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001349/0.1572, allocations: 0.8974 MB / 0.5052 GB, free: 3.297 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.213e-06/0.1572, allocations: 0 / 0.5052 GB, free: 3.297 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002709/0.1599, allocations: 1.418 MB / 0.5066 GB, free: 1.84 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002861/0.1602, allocations: 232.3 kB / 0.5068 GB, free: 1.594 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001279/0.1604, allocations: 24 kB / 0.5069 GB, free: 1.57 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005375/0.1609, allocations: 43.97 kB / 0.5069 GB, free: 1.527 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.949e-05/0.161, allocations: 48.5 kB / 0.5069 GB, free: 1.477 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.288e-05/0.1611, allocations: 32.03 kB / 0.507 GB, free: 1.445 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005606/0.1617, allocations: 451 kB / 0.5074 GB, free: 1.012 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1617, allocations: 0 / 0.5074 GB, free: 1.012 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008209/0.1625, allocations: 327.2 kB / 0.5077 GB, free: 0.6914 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.1564/0.3189, allocations: 2.507 MB / 0.5102 GB, free: 45.61 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001906/0.3208, allocations: 0.9941 MB / 0.5111 GB, free: 45.36 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.716e-06/0.3208, allocations: 0 / 0.5111 GB, free: 45.36 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007757/0.3216, allocations: 0.5032 MB / 0.5116 GB, free: 45.23 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008035/0.3224, allocations: 156 kB / 0.5118 GB, free: 45.22 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009442/0.3319, allocations: 7.075 MB / 0.5187 GB, free: 41.62 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004726/0.3324, allocations: 1.016 MB / 0.5197 GB, free: 40.91 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004367/0.3328, allocations: 134.9 kB / 0.5198 GB, free: 40.86 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004102/0.3332, allocations: 403.5 kB / 0.5202 GB, free: 40.57 MB / 382.1 MB Notification: Performance of SimCode: time 6.11e-07/0.3332, allocations: 0 / 0.5202 GB, free: 40.57 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.215/0.5482, allocations: 20.51 MB / 0.5402 GB, free: 28.88 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.18/16.72, allocations: 12 kB / 0.5402 GB, free: 28.87 MB / 382.1 MB (rm -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Measurement_20160704.pipe ; mkfifo PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Measurement_20160704.pipe ; head -c 1048576 < PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Measurement_20160704.pipe >> ../files/PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Measurement_20160704.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Trina_Measurement_20160704_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-08 PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Trina_Measurement_20160704.fmu > PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Trina_Measurement_20160704.pipe 2>&1)