Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160808.conf.json 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/ModelicaServices 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) 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 PhotoVoltaics with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/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 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) Running command: "" <> buildModelFMU(PhotoVoltaics_TGM.TGM_Comax_Measurement_20160808,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Measurement_20160808",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PhotoVoltaics_TGM.TGM_Comax_Measurement_20160808,fileNamePrefix="PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Measurement_20160808",fmuType="me",version="2.0",platforms={"static"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001002/0.001002, allocations: 181.6 kB / 7.458 MB, free: 1.547 MB / 6.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.155/1.155, allocations: 221.4 MB / 229.3 MB, free: 8.414 MB / 194.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008767/0.0008767, allocations: 105.8 kB / 280.1 MB, free: 7.828 MB / 226.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.0238/0.0238, allocations: 5.296 MB / 336.2 MB, free: 15.79 MB / 290.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics_TGM 2.0.0/package.mo): time 0.007694/0.007694, allocations: 2.29 MB / 390.4 MB, free: 65.54 MB / 290.8 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Rkfix4" Notification: Performance of FrontEnd - loaded program: time 0.1007/0.1085, allocations: 59.04 MB / 449.5 MB, free: 6.523 MB / 290.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2279/0.3364, allocations: 52.19 MB / 0.4899 GB, free: 37.66 MB / 306.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1062/0.4426, allocations: 97.84 MB / 0.5855 GB, free: 3.664 MB / 370.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002088/0.4429, allocations: 69.94 kB / 0.5855 GB, free: 3.602 MB / 370.8 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.2827/0.7255, allocations: 39.57 MB / 0.6242 GB, free: 93.05 MB / 386.8 MB Notification: Performance of prepare preOptimizeDAE: time 5.166e-05/0.7256, allocations: 11 kB / 0.6242 GB, free: 93.05 MB / 386.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002018/0.7276, allocations: 319.3 kB / 0.6245 GB, free: 92.96 MB / 386.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001812/0.7295, allocations: 0.6541 MB / 0.6251 GB, free: 92.5 MB / 386.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001299/0.7296, allocations: 34.31 kB / 0.6252 GB, free: 92.5 MB / 386.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000325/0.73, allocations: 65.25 kB / 0.6252 GB, free: 92.49 MB / 386.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00224/0.7322, allocations: 0.868 MB / 0.6261 GB, free: 92.05 MB / 386.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001608/0.7338, allocations: 0.9326 MB / 0.627 GB, free: 91.19 MB / 386.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.458e-05/0.7339, allocations: 3.906 kB / 0.627 GB, free: 91.19 MB / 386.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001163/0.734, allocations: 12 kB / 0.627 GB, free: 91.18 MB / 386.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.396e-05/0.734, allocations: 24.56 kB / 0.627 GB, free: 91.15 MB / 386.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006257/0.7403, allocations: 4.31 MB / 0.6312 GB, free: 87.4 MB / 386.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009423/0.7413, allocations: 0.6255 MB / 0.6318 GB, free: 86.77 MB / 386.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000471/0.7418, allocations: 291.9 kB / 0.6321 GB, free: 86.49 MB / 386.8 MB Notification: Performance of preOpt evalFunc (simulation): time 8.347e-05/0.7419, allocations: 91.7 kB / 0.6322 GB, free: 86.39 MB / 386.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005561/0.7424, allocations: 440.6 kB / 0.6326 GB, free: 85.97 MB / 386.8 MB Notification: Performance of pre-optimization done (n=67): time 3.115e-06/0.7424, allocations: 0 / 0.6326 GB, free: 85.97 MB / 386.8 MB Notification: Performance of matching and sorting (n=67): time 0.003657/0.7461, allocations: 0.945 MB / 0.6336 GB, free: 85.02 MB / 386.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.52e-05/0.7462, allocations: 311.2 kB / 0.6339 GB, free: 84.65 MB / 386.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006817/0.7469, allocations: 0.5888 MB / 0.6344 GB, free: 84.05 MB / 386.8 MB Notification: Performance of collectPreVariables (initialization): time 5.048e-05/0.7469, allocations: 29.7 kB / 0.6345 GB, free: 84.02 MB / 386.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001815/0.7471, allocations: 442.4 kB / 0.6349 GB, free: 83.58 MB / 386.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001349/0.7473, allocations: 205 kB / 0.6351 GB, free: 83.38 MB / 386.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.58e-05/0.7473, allocations: 4 kB / 0.6351 GB, free: 83.37 MB / 386.8 MB Notification: Performance of setup shared object (initialization): time 8.883e-05/0.7474, allocations: 386.8 kB / 0.6354 GB, free: 82.98 MB / 386.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003944/0.7478, allocations: 258 kB / 0.6357 GB, free: 82.73 MB / 386.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004816/0.7483, allocations: 0.5084 MB / 0.6362 GB, free: 82.11 MB / 386.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006107/0.7489, allocations: 355.5 kB / 0.6365 GB, free: 81.76 MB / 386.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.983e-06/0.7489, allocations: 0 / 0.6365 GB, free: 81.76 MB / 386.8 MB Notification: Performance of matching and sorting (n=121) (initialization): time 0.001672/0.7506, allocations: 0.9386 MB / 0.6374 GB, free: 80.82 MB / 386.8 MB Notification: Performance of prepare postOptimizeDAE: time 1.675e-05/0.7507, allocations: 7.938 kB / 0.6375 GB, free: 80.81 MB / 386.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.659e-05/0.7507, allocations: 14.33 kB / 0.6375 GB, free: 80.8 MB / 386.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005258/0.7512, allocations: 96.72 kB / 0.6376 GB, free: 80.7 MB / 386.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008515/0.7521, allocations: 215.7 kB / 0.6378 GB, free: 80.49 MB / 386.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001325/0.7534, allocations: 1.495 MB / 0.6392 GB, free: 78.88 MB / 386.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008192/0.7542, allocations: 87.23 kB / 0.6393 GB, free: 78.79 MB / 386.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.902e-05/0.7543, allocations: 47.97 kB / 0.6394 GB, free: 78.74 MB / 386.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 35 * Number of states: 0 () * Number of discrete variables: 26 ($PRE.writeCSV.firstTrigger,writeCSV.firstTrigger,$PRE.mpTracker.signv,mpTracker.signv,$PRE.mpTracker.firstTrigger,mpTracker.firstTrigger,$PRE.mpTracker.counter,mpTracker.counter,$whenCondition4,$PRE.irradianceTable.nextTimeEvent,$whenCondition3,writeCSV.sampleTrigger,$whenCondition2,mpTracker.sampleTrigger,$whenCondition1,$PRE.powerTable.nextTimeEvent,powerTable.nextTimeEvent,$PRE.powerTable.nextTimeEventScaled,powerTable.nextTimeEventScaled,$PRE.mpTracker.vRef,mpTracker.vRef,irradianceTable.nextTimeEvent,$PRE.irradianceTable.nextTimeEventScaled,irradianceTable.nextTimeEventScaled,integrator.local_reset,converter.integrator.local_reset) * Number of discrete 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 (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {2} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002119/0.7546, allocations: 216 kB / 0.6396 GB, free: 78.52 MB / 386.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001399/0.7547, allocations: 79.06 kB / 0.6396 GB, free: 78.44 MB / 386.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003669/0.7584, allocations: 1.06 MB / 0.6407 GB, free: 77.37 MB / 386.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.175e-06/0.7584, allocations: 7.984 kB / 0.6407 GB, free: 77.36 MB / 386.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.439e-06/0.7584, allocations: 4 kB / 0.6407 GB, free: 77.36 MB / 386.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.141e-05/0.7584, allocations: 7.891 kB / 0.6407 GB, free: 77.35 MB / 386.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00484/0.7633, allocations: 2.055 MB / 0.6427 GB, free: 75.26 MB / 386.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.242e-06/0.7633, allocations: 4 kB / 0.6427 GB, free: 75.25 MB / 386.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003921/0.7637, allocations: 92.33 kB / 0.6428 GB, free: 75.16 MB / 386.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002429/0.7661, allocations: 0.545 MB / 0.6433 GB, free: 74.61 MB / 386.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.431e-05/0.7662, allocations: 19.97 kB / 0.6433 GB, free: 74.59 MB / 386.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007472/0.767, allocations: 0.8344 MB / 0.6442 GB, free: 73.73 MB / 386.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.759e-06/0.767, allocations: 4.062 kB / 0.6442 GB, free: 73.73 MB / 386.8 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004069/0.7711, allocations: 1.497 MB / 0.6456 GB, free: 72.19 MB / 386.8 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.00453/0.7756, allocations: 2.213 MB / 0.6478 GB, free: 69.93 MB / 386.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004159/0.776, allocations: 256 kB / 0.648 GB, free: 69.66 MB / 386.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001949/0.7762, allocations: 12 kB / 0.648 GB, free: 69.65 MB / 386.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000593/0.7768, allocations: 39.95 kB / 0.6481 GB, free: 69.61 MB / 386.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.363e-05/0.7769, allocations: 40.44 kB / 0.6481 GB, free: 69.57 MB / 386.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.92e-05/0.777, allocations: 33.47 kB / 0.6481 GB, free: 69.54 MB / 386.8 MB Notification: Performance of sort global known variables: time 0.0005115/0.7775, allocations: 443.2 kB / 0.6486 GB, free: 69.11 MB / 386.8 MB Notification: Performance of remove unused functions: time 0.001624/0.7792, allocations: 378.5 kB / 0.6489 GB, free: 68.74 MB / 386.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (converter.potentialSensor.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.nextTimeEvent,powerTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (59): * Single equations (assignments): 53 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 4 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.001392/0.7806, allocations: 0.5973 MB / 0.6495 GB, free: 68.34 MB / 386.8 MB Notification: Performance of simCode: created initialization part: time 0.001455/0.782, allocations: 0.8458 MB / 0.6503 GB, free: 67.46 MB / 386.8 MB Notification: Performance of simCode: created event and clocks part: time 3.687e-06/0.7821, allocations: 4.188 kB / 0.6503 GB, free: 67.46 MB / 386.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0005495/0.7826, allocations: 401.3 kB / 0.6507 GB, free: 67.06 MB / 386.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007833/0.7834, allocations: 131 kB / 0.6508 GB, free: 66.93 MB / 386.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002593/0.786, allocations: 1.24 MB / 0.6521 GB, free: 65.66 MB / 386.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007058/0.7867, allocations: 1.118 MB / 0.6532 GB, free: 64.52 MB / 386.8 MB Notification: Performance of SimCode: time 6.21e-07/0.7867, allocations: 0 / 0.6532 GB, free: 64.52 MB / 386.8 MB (rm -f PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160808.pipe ; mkfifo PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160808.pipe ; head -c 1048576 < PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160808.pipe >> ../files/PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160808.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Measurement_20160808_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-08 PhotoVoltaics_TGM_PhotoVoltaics_TGM_TGM_Comax_Measurement_20160808.fmu > PhotoVoltaics_TGM_PhotoVoltaics_TGM.TGM_Comax_Measurement_20160808.pipe 2>&1)