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.03255/0.03255, allocations: 5.397 MB / 21.03 MB, free: 1.582 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.000929/0.000929, allocations: 99.12 kB / 23.02 MB, free: 0.7969 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.001123/0.001123, allocations: 206.6 kB / 25.15 MB, free: 152 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.232/1.232, 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.009278/0.009278, allocations: 2.33 MB / 303.7 MB, free: 6.469 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001594/0.001594, allocations: 95.84 kB / 419.1 MB, free: 23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07675/0.07835, allocations: 51.22 MB / 470.4 MB, free: 3.734 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics_TGM.TGM_Trina_Measurement_20160629): time 0.007953/0.08633, allocations: 6.849 MB / 477.2 MB, free: 12.85 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005814/0.09218, allocations: 3.939 MB / 481.2 MB, free: 8.898 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006504/0.09285, allocations: 23.94 kB / 481.2 MB, free: 8.875 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002572/0.09543, allocations: 1.158 MB / 482.3 MB, free: 7.711 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001877/0.09732, allocations: 0.8542 MB / 483.2 MB, free: 6.855 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0015/0.09883, allocations: 0.5518 MB / 483.7 MB, free: 6.309 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001488/0.1003, allocations: 1.409 MB / 485.1 MB, free: 4.895 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001301/0.1016, allocations: 1.018 MB / 486.2 MB, free: 3.848 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007036/0.1024, allocations: 0.5565 MB / 486.7 MB, free: 3.289 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009925/0.1034, allocations: 0.6925 MB / 487.4 MB, free: 2.594 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002163/0.1036, allocations: 148 kB / 487.6 MB, free: 2.449 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008628/0.1045, allocations: 431.7 kB / 488 MB, free: 2.027 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002325/0.1047, allocations: 307 kB / 488.3 MB, free: 1.727 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006591/0.1054, allocations: 0.6413 MB / 488.9 MB, free: 1.082 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001929/0.1073, allocations: 1.799 MB / 490.7 MB, free: 15.28 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.818e-06/0.1073, allocations: 4 kB / 490.7 MB, free: 15.27 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.1073, allocations: 0 / 490.7 MB, free: 15.27 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.191e-05/0.1074, allocations: 0 / 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.003829/0.1112, allocations: 1.81 MB / 492.5 MB, free: 13.4 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.535e-05/0.1112, allocations: 8.031 kB / 492.5 MB, free: 13.39 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001739/0.1114, allocations: 160.9 kB / 492.7 MB, free: 13.22 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002093/0.1135, allocations: 387 kB / 493.1 MB, free: 12.84 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001792/0.1153, allocations: 0.8281 MB / 493.9 MB, free: 11.97 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.066e-05/0.1154, allocations: 78.08 kB / 494 MB, free: 11.89 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000148/0.1155, allocations: 112 kB / 494.1 MB, free: 11.79 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002004/0.1176, allocations: 1.169 MB / 495.3 MB, free: 10.55 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.713e-05/0.1176, allocations: 3.938 kB / 495.3 MB, free: 10.55 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.963e-05/0.1177, allocations: 44 kB / 495.3 MB, free: 10.51 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.479e-05/0.1177, allocations: 24 kB / 495.3 MB, free: 10.48 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002033/0.1198, allocations: 1.073 MB / 496.4 MB, free: 9.41 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005915/0.1257, allocations: 4.341 MB / 0.489 GB, free: 4.867 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002724/0.1284, allocations: 1.732 MB / 0.4907 GB, free: 2.922 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006097/0.129, allocations: 333.2 kB / 0.491 GB, free: 2.594 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.409e-05/0.1291, allocations: 97.66 kB / 0.4911 GB, free: 2.48 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007788/0.1299, allocations: 457.8 kB / 0.4915 GB, free: 2.004 MB / 366.1 MB Notification: Performance of pre-optimization done (n=69): time 2.284e-06/0.1299, allocations: 0 / 0.4915 GB, free: 2.004 MB / 366.1 MB Notification: Performance of matching and sorting (n=69): time 0.005511/0.1355, allocations: 1.596 MB / 0.4931 GB, free: 376 kB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001267/0.1356, allocations: 226.1 kB / 0.4933 GB, free: 100 kB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009223/0.1365, allocations: 0.6562 MB / 0.494 GB, free: 15.43 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.058e-05/0.1366, allocations: 53.72 kB / 0.494 GB, free: 15.37 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003478/0.137, allocations: 0.5141 MB / 0.4945 GB, free: 14.85 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001721/0.1371, allocations: 232.7 kB / 0.4947 GB, free: 14.62 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002821/0.1374, allocations: 182.5 kB / 0.4949 GB, free: 14.43 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000156/0.1376, allocations: 390.8 kB / 0.4953 GB, free: 14.04 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006288/0.1382, allocations: 297.8 kB / 0.4956 GB, free: 13.75 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008792/0.1391, allocations: 0.5309 MB / 0.4961 GB, free: 13.12 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00136/0.1405, allocations: 0.94 MB / 0.497 GB, free: 12.06 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.803e-05/0.1406, allocations: 0 / 0.497 GB, free: 12.06 MB / 382.1 MB Notification: Performance of matching and sorting (n=121) (initialization): time 0.002138/0.1427, allocations: 1.114 MB / 0.4981 GB, free: 10.92 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.389e-05/0.1428, allocations: 65.88 kB / 0.4982 GB, free: 10.85 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.138e-05/0.1428, allocations: 8 kB / 0.4982 GB, free: 10.84 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005531/0.1434, allocations: 96.64 kB / 0.4983 GB, free: 10.74 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007943/0.1442, allocations: 223.7 kB / 0.4985 GB, free: 10.52 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001463/0.1457, allocations: 1.578 MB / 0.5 GB, free: 8.797 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006543/0.1463, allocations: 111 kB / 0.5001 GB, free: 8.688 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001261/0.1465, allocations: 39.98 kB / 0.5002 GB, free: 8.648 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.0004433/0.147, allocations: 351.2 kB / 0.5005 GB, free: 8.285 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001386/0.1471, allocations: 83 kB / 0.5006 GB, free: 8.203 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001925/0.149, allocations: 1.007 MB / 0.5016 GB, free: 7.168 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.614e-06/0.1491, allocations: 11.94 kB / 0.5016 GB, free: 7.156 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.43e-06/0.1491, allocations: 0 / 0.5016 GB, free: 7.156 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.408e-05/0.1491, allocations: 3.984 kB / 0.5016 GB, free: 7.152 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005637/0.1548, allocations: 2.31 MB / 0.5038 GB, free: 4.766 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.216e-06/0.1548, allocations: 0 / 0.5038 GB, free: 4.766 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003579/0.1551, allocations: 95.89 kB / 0.5039 GB, free: 4.672 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007717/0.1559, allocations: 330.2 kB / 0.5042 GB, free: 4.34 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.625e-05/0.156, allocations: 27.98 kB / 0.5043 GB, free: 4.312 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001201/0.1572, allocations: 0.8974 MB / 0.5051 GB, free: 3.383 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.432e-06/0.1572, allocations: 0 / 0.5051 GB, free: 3.383 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002442/0.1597, allocations: 1.409 MB / 0.5065 GB, free: 1.934 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000287/0.16, allocations: 224 kB / 0.5067 GB, free: 1.695 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001114/0.1601, allocations: 20 kB / 0.5067 GB, free: 1.676 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005067/0.1606, allocations: 47.97 kB / 0.5068 GB, free: 1.629 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.299e-05/0.1607, allocations: 40.5 kB / 0.5068 GB, free: 1.586 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.935e-05/0.1608, allocations: 35.97 kB / 0.5069 GB, free: 1.551 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005059/0.1613, allocations: 451 kB / 0.5073 GB, free: 1.117 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1613, allocations: 0 / 0.5073 GB, free: 1.117 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007908/0.1621, allocations: 326.9 kB / 0.5076 GB, free: 0.7969 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.1656/0.3277, allocations: 2.5 MB / 0.51 GB, free: 45.44 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001913/0.3296, allocations: 0.9959 MB / 0.511 GB, free: 45.2 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.955e-06/0.3297, allocations: 0 / 0.511 GB, free: 45.2 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008407/0.3305, allocations: 0.4898 MB / 0.5115 GB, free: 45.07 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008393/0.3314, allocations: 160.3 kB / 0.5116 GB, free: 45.05 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009838/0.3412, allocations: 7.045 MB / 0.5185 GB, free: 41.49 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005731/0.3418, allocations: 1.018 MB / 0.5195 GB, free: 40.77 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004294/0.3423, allocations: 137 kB / 0.5196 GB, free: 40.72 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004111/0.3427, allocations: 399.4 kB / 0.52 GB, free: 40.43 MB / 382.1 MB Notification: Performance of SimCode: time 4.91e-07/0.3427, allocations: 0 / 0.52 GB, free: 40.43 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0425/0.3852, allocations: 20.86 MB / 0.5404 GB, free: 28.39 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.76/15.15, allocations: 8.984 kB / 0.5404 GB, free: 28.39 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)