Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PhotoVoltaics_PhotoVoltaics.Examples.SimpleCellIrradianceCharacteristic.conf.json 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 2.0.0/package.mo", uses=false) Using package PhotoVoltaics with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 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) Running command: "" <> buildModelFMU(PhotoVoltaics.Examples.SimpleCellIrradianceCharacteristic,fileNamePrefix="PhotoVoltaics_PhotoVoltaics_Examples_SimpleCellIrradianceCharacteristic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PhotoVoltaics.Examples.SimpleCellIrradianceCharacteristic,fileNamePrefix="PhotoVoltaics_PhotoVoltaics_Examples_SimpleCellIrradianceCharacteristic",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007475/0.0007476, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.004558/0.004558, allocations: 170 kB / 16.26 MB, free: 6.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.312/1.312, allocations: 223.2 MB / 240.3 MB, free: 5.359 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PhotoVoltaics 2.0.0/package.mo): time 0.1483/0.1483, allocations: 5.372 MB / 296.8 MB, free: 3.895 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003519/0.0003518, allocations: 11.98 kB / 362.7 MB, free: 13.73 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1091/0.1094, allocations: 51.6 MB / 414.3 MB, free: 10.08 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PhotoVoltaics.Examples.SimpleCellIrradianceCharacteristic): time 0.004771/0.1143, allocations: 3.485 MB / 417.8 MB, free: 6.57 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002652/0.117, allocations: 1.464 MB / 419.3 MB, free: 5.102 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004926/0.1175, allocations: 8 kB / 419.3 MB, free: 5.094 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008034/0.1183, allocations: 218.8 kB / 419.5 MB, free: 4.879 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007751/0.1191, allocations: 150.9 kB / 419.6 MB, free: 4.73 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006371/0.1198, allocations: 191.8 kB / 419.8 MB, free: 4.543 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009627/0.1207, allocations: 0.7084 MB / 420.5 MB, free: 3.832 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000337/0.1211, allocations: 153.9 kB / 420.7 MB, free: 3.672 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004437/0.1215, allocations: 238.8 kB / 420.9 MB, free: 3.438 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005141/0.1221, allocations: 290.7 kB / 421.2 MB, free: 3.152 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001271/0.1222, allocations: 28 kB / 421.2 MB, free: 3.125 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001693/0.1224, allocations: 47.88 kB / 421.3 MB, free: 3.078 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001108/0.1225, allocations: 107.4 kB / 421.4 MB, free: 2.973 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003572/0.1229, allocations: 280.2 kB / 421.6 MB, free: 2.691 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006567/0.1235, allocations: 0.6616 MB / 422.3 MB, free: 2.027 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.059e-06/0.1235, allocations: 0 / 422.3 MB, free: 2.027 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.324e-06/0.1235, allocations: 0 / 422.3 MB, free: 2.027 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.519e-05/0.1236, allocations: 0 / 422.3 MB, free: 2.027 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.002325/0.1259, allocations: 0.9584 MB / 423.3 MB, free: 1.016 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.675e-05/0.126, allocations: 16.03 kB / 423.3 MB, free: 1 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.84e-05/0.126, allocations: 70.66 kB / 423.3 MB, free: 0.9219 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001079/0.1262, allocations: 60.19 kB / 423.4 MB, free: 0.8633 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001156/0.1273, allocations: 0.5764 MB / 424 MB, free: 256 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001059/0.1274, allocations: 48.58 kB / 424 MB, free: 208 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.236e-05/0.1275, allocations: 36 kB / 424.1 MB, free: 172 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1608/0.2883, allocations: 465.1 kB / 424.5 MB, free: 44.69 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.625e-05/0.2884, allocations: 2.281 kB / 424.5 MB, free: 44.69 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.342e-05/0.2884, allocations: 10.58 kB / 424.5 MB, free: 44.69 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.058e-05/0.2885, allocations: 8.125 kB / 424.5 MB, free: 44.69 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001159/0.2896, allocations: 458.6 kB / 425 MB, free: 44.69 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002526/0.2922, allocations: 1.589 MB / 426.6 MB, free: 44.1 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001293/0.2935, allocations: 0.6224 MB / 427.2 MB, free: 43.89 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005093/0.294, allocations: 215.1 kB / 427.4 MB, free: 43.88 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.86e-05/0.294, allocations: 3.125 kB / 427.4 MB, free: 43.88 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006202/0.2947, allocations: 287.8 kB / 427.7 MB, free: 43.8 MB / 350.1 MB Notification: Performance of pre-optimization done (n=25): time 1.783e-06/0.2947, allocations: 0 / 427.7 MB, free: 43.8 MB / 350.1 MB Notification: Performance of matching and sorting (n=25): time 0.003566/0.2982, allocations: 1.055 MB / 428.7 MB, free: 43.64 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.971e-05/0.2983, allocations: 84.48 kB / 428.8 MB, free: 43.54 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003901/0.2987, allocations: 453.8 kB / 429.3 MB, free: 43.43 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.683e-05/0.2987, allocations: 35.86 kB / 429.3 MB, free: 43.4 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001164/0.2988, allocations: 261.7 kB / 429.6 MB, free: 43.28 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.587e-05/0.2989, allocations: 77.33 kB / 429.6 MB, free: 43.23 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.027e-05/0.2989, allocations: 41.78 kB / 429.7 MB, free: 43.21 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.507e-05/0.299, allocations: 358 kB / 430 MB, free: 42.89 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005146/0.2995, allocations: 210.7 kB / 430.2 MB, free: 42.88 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005103/0.3001, allocations: 249.7 kB / 430.5 MB, free: 42.84 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001014/0.3011, allocations: 452.4 kB / 430.9 MB, free: 42.75 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.3011, allocations: 0 / 430.9 MB, free: 42.75 MB / 350.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.00264/0.3037, allocations: 0.8452 MB / 431.8 MB, free: 42.62 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.289e-05/0.3038, allocations: 145 kB / 431.9 MB, free: 42.47 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.352e-06/0.3038, allocations: 0.5625 kB / 431.9 MB, free: 42.47 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007994/0.3046, allocations: 252.7 kB / 432.1 MB, free: 42.45 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003656/0.305, allocations: 90.03 kB / 432.2 MB, free: 42.44 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004368/0.3094, allocations: 3.514 MB / 435.8 MB, free: 39.71 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004945/0.3099, allocations: 78.28 kB / 435.8 MB, free: 39.7 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.986e-05/0.3099, allocations: 16.17 kB / 435.8 MB, free: 39.7 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.861e-06/0.3099, allocations: 3.344 kB / 435.8 MB, free: 39.7 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002465/0.3124, allocations: 0.7922 MB / 436.6 MB, free: 39.61 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.346e-06/0.3124, allocations: 2.938 kB / 436.6 MB, free: 39.61 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006578/0.3131, allocations: 254.5 kB / 436.9 MB, free: 39.57 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003309/0.3134, allocations: 80.55 kB / 437 MB, free: 39.57 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003987/0.3174, allocations: 3.501 MB / 440.5 MB, free: 36.84 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004475/0.3179, allocations: 76.7 kB / 440.5 MB, free: 36.82 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.086e-05/0.3179, allocations: 13.22 kB / 440.6 MB, free: 36.82 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 6 (triangleAndStep.trapezoid.count,$PRE.triangleAndStep.trapezoid.count,triangleAndStep.trapezoid.T_start,$PRE.triangleAndStep.trapezoid.T_start,triangleAndStep.realToInteger.y,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (36): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * 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: 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,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0002155/0.3182, allocations: 247.1 kB / 440.8 MB, free: 36.63 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.519e-05/0.3182, allocations: 42.91 kB / 440.8 MB, free: 36.61 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.94e-05/0.3183, allocations: 52.61 kB / 440.9 MB, free: 36.59 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.145e-06/0.3183, allocations: 7.281 kB / 440.9 MB, free: 36.58 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.064e-06/0.3183, allocations: 0 / 440.9 MB, free: 36.58 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.66e-06/0.3184, allocations: 3.328 kB / 440.9 MB, free: 36.58 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002598/0.321, allocations: 1.208 MB / 442.1 MB, free: 36.04 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.424e-06/0.321, allocations: 0 / 442.1 MB, free: 36.04 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002646/0.3212, allocations: 66.95 kB / 442.2 MB, free: 36.04 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003003/0.3215, allocations: 173.5 kB / 442.3 MB, free: 35.98 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.302e-05/0.3216, allocations: 14.45 kB / 442.4 MB, free: 35.98 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002705/0.3243, allocations: 1.948 MB / 444.3 MB, free: 34.47 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.452e-06/0.3243, allocations: 11.39 kB / 444.3 MB, free: 34.46 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002202/0.3265, allocations: 0.7746 MB / 445.1 MB, free: 34.17 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001229/0.3267, allocations: 153.9 kB / 445.2 MB, free: 34.03 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.697e-05/0.3267, allocations: 7.219 kB / 445.2 MB, free: 34.02 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004181/0.3272, allocations: 56.06 kB / 445.3 MB, free: 34.02 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.824e-05/0.3273, allocations: 35.27 kB / 445.3 MB, free: 34.01 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.278e-05/0.3273, allocations: 9.75 kB / 445.3 MB, free: 34.01 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002714/0.3276, allocations: 321 kB / 445.7 MB, free: 33.85 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3276, allocations: 0 / 445.7 MB, free: 33.85 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006594/0.3282, allocations: 206 kB / 445.9 MB, free: 33.81 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition1,triangleAndStep.realToInteger.y,triangleAndStep.trapezoid.T_start,triangleAndStep.trapezoid.count) * Number of discrete states: 1 (triangleAndStep.trapezoid.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (23): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * 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,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002349/0.3306, allocations: 1.311 MB / 447.2 MB, free: 32.99 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002094/0.3327, allocations: 1.313 MB / 448.5 MB, free: 32.2 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.3327, allocations: 0 / 448.5 MB, free: 32.2 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005685/0.3333, allocations: 330 kB / 448.8 MB, free: 32.03 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005938/0.3339, allocations: 99.83 kB / 448.9 MB, free: 31.99 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008734/0.3426, allocations: 5.145 MB / 454.1 MB, free: 29.29 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002431/0.3429, allocations: 0.8245 MB / 454.9 MB, free: 28.59 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003251/0.3432, allocations: 68.22 kB / 454.9 MB, free: 28.56 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002005/0.3434, allocations: 162.6 kB / 455.1 MB, free: 28.44 MB / 350.1 MB Notification: Performance of SimCode: time 4.5e-07/0.3434, allocations: 3.125 kB / 455.1 MB, free: 28.44 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0361/0.3795, allocations: 13.44 MB / 468.5 MB, free: 27.54 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001821/0.3798, allocations: 236.9 kB / 468.8 MB, free: 27.29 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.972/2.352, allocations: 4 kB / 468.8 MB, free: 27.28 MB / 350.1 MB (rm -f PhotoVoltaics_PhotoVoltaics.Examples.SimpleCellIrradianceCharacteristic.pipe ; mkfifo PhotoVoltaics_PhotoVoltaics.Examples.SimpleCellIrradianceCharacteristic.pipe ; head -c 1048576 < PhotoVoltaics_PhotoVoltaics.Examples.SimpleCellIrradianceCharacteristic.pipe >> ../files/PhotoVoltaics_PhotoVoltaics.Examples.SimpleCellIrradianceCharacteristic.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PhotoVoltaics_PhotoVoltaics_Examples_SimpleCellIrradianceCharacteristic_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PhotoVoltaics_PhotoVoltaics_Examples_SimpleCellIrradianceCharacteristic.fmu > PhotoVoltaics_PhotoVoltaics.Examples.SimpleCellIrradianceCharacteristic.pipe 2>&1)