Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface.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/IDEAS 3.0.0/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.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(IDEAS.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface,fileNamePrefix="IDEAS_IDEAS_BoundaryConditions_SolarIrradiation_Examples_DirectTiltedSurface",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface,fileNamePrefix="IDEAS_IDEAS_BoundaryConditions_SolarIrradiation_Examples_DirectTiltedSurface",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.005199/0.005199, allocations: 101.6 kB / 15.73 MB, free: 5.996 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.001266/0.001266, allocations: 190.3 kB / 16.67 MB, free: 5.93 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.232/1.232, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7005/0.7005, allocations: 132.2 MB / 422.7 MB, free: 1.711 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001151/0.001151, allocations: 63.89 kB / 0.5809 GB, free: 8.09 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3248/0.326, allocations: 80.2 MB / 0.6592 GB, free: 9.871 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface): time 0.00497/0.331, allocations: 4.919 MB / 0.664 GB, free: 6.379 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.1442/0.4752, allocations: 150.8 MB / 0.8112 GB, free: 9.902 MB / 0.6387 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007106/0.476, allocations: 23.88 kB / 0.8113 GB, free: 9.879 MB / 0.6387 GB Notification: Performance of NFTyping.typeComponents: time 0.0005146/0.4765, allocations: 190.1 kB / 0.8114 GB, free: 9.691 MB / 0.6387 GB Notification: Performance of NFTyping.typeBindings: time 0.001459/0.478, allocations: 0.5732 MB / 0.812 GB, free: 9.117 MB / 0.6387 GB Notification: Performance of NFTyping.typeClassSections: time 0.001786/0.4798, allocations: 0.9256 MB / 0.8129 GB, free: 8.203 MB / 0.6387 GB Notification: Performance of NFFlatten.flatten: time 0.001201/0.481, allocations: 1.565 MB / 0.8144 GB, free: 6.633 MB / 0.6387 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001175/0.4822, allocations: 1.138 MB / 0.8156 GB, free: 5.457 MB / 0.6387 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006065/0.4828, allocations: 0.7006 MB / 0.8162 GB, free: 4.754 MB / 0.6387 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006132/0.4834, allocations: 0.735 MB / 0.817 GB, free: 4.016 MB / 0.6387 GB Notification: Performance of NFPackage.collectConstants: time 0.0001872/0.4836, allocations: 192 kB / 0.8171 GB, free: 3.828 MB / 0.6387 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007374/0.4844, allocations: 0.5426 MB / 0.8177 GB, free: 3.285 MB / 0.6387 GB Notification: Performance of NFScalarize.scalarize: time 0.0003168/0.4847, allocations: 442.6 kB / 0.8181 GB, free: 2.852 MB / 0.6387 GB Notification: Performance of NFVerifyModel.verify: time 0.0005712/0.4853, allocations: 0.8161 MB / 0.8189 GB, free: 2.031 MB / 0.6387 GB Notification: Performance of NFConvertDAE.convert: time 0.001948/0.4872, allocations: 2.314 MB / 0.8211 GB, free: 15.71 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 3.005e-06/0.4872, allocations: 0 / 0.8211 GB, free: 15.71 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.092e-06/0.4872, allocations: 0 / 0.8211 GB, free: 15.71 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 1.357e-05/0.4873, allocations: 4 kB / 0.8212 GB, free: 15.7 MB / 0.6544 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 376 * Number of variables: 376 Notification: Performance of Generate backend data structure: time 0.002582/0.4898, allocations: 1.878 MB / 0.823 GB, free: 13.77 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 3.576e-05/0.4899, allocations: 12.03 kB / 0.823 GB, free: 13.76 MB / 0.6544 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002161/0.4901, allocations: 211.6 kB / 0.8232 GB, free: 13.54 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009259/0.491, allocations: 255.6 kB / 0.8234 GB, free: 13.29 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001255/0.4923, allocations: 0.931 MB / 0.8244 GB, free: 12.31 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001191/0.4924, allocations: 136.7 kB / 0.8245 GB, free: 12.17 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001545/0.4926, allocations: 143.9 kB / 0.8246 GB, free: 12.04 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002197/0.4948, allocations: 1.461 MB / 0.826 GB, free: 10.52 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.659e-05/0.4949, allocations: 0 / 0.826 GB, free: 10.52 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000121/0.495, allocations: 67.98 kB / 0.8261 GB, free: 10.45 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.575e-05/0.495, allocations: 36 kB / 0.8261 GB, free: 10.42 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002223/0.4972, allocations: 1.494 MB / 0.8276 GB, free: 8.918 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005243/0.5025, allocations: 3.894 MB / 0.8314 GB, free: 4.945 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001474/0.504, allocations: 0.8998 MB / 0.8323 GB, free: 4.047 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005912/0.5046, allocations: 371.7 kB / 0.8326 GB, free: 3.68 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 7.672e-05/0.5047, allocations: 40.92 kB / 0.8327 GB, free: 3.641 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008966/0.5056, allocations: 0.5437 MB / 0.8332 GB, free: 3.078 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=93): time 2.264e-06/0.5056, allocations: 0 / 0.8332 GB, free: 3.078 MB / 0.6544 GB Notification: Performance of matching and sorting (n=93): time 0.003182/0.5088, allocations: 1.381 MB / 0.8346 GB, free: 1.676 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.677e-05/0.5089, allocations: 188.9 kB / 0.8347 GB, free: 1.449 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008351/0.5097, allocations: 0.7707 MB / 0.8355 GB, free: 0.668 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 6.648e-05/0.5098, allocations: 41.7 kB / 0.8355 GB, free: 0.6211 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003685/0.5102, allocations: 0.5906 MB / 0.8361 GB, free: 24 kB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002252/0.5104, allocations: 329.4 kB / 0.8364 GB, free: 15.7 MB / 0.67 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002496/0.5107, allocations: 174.5 kB / 0.8366 GB, free: 15.52 MB / 0.67 GB Notification: Performance of setup shared object (initialization): time 0.0001125/0.5108, allocations: 338 kB / 0.8369 GB, free: 15.18 MB / 0.67 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005676/0.5114, allocations: 301.8 kB / 0.8372 GB, free: 14.89 MB / 0.67 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006591/0.512, allocations: 435.4 kB / 0.8376 GB, free: 14.43 MB / 0.67 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001245/0.5133, allocations: 0.75 MB / 0.8383 GB, free: 13.66 MB / 0.67 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.5133, allocations: 0 / 0.8383 GB, free: 13.66 MB / 0.67 GB Notification: Performance of matching and sorting (n=105) (initialization): time 0.002016/0.5153, allocations: 0.9857 MB / 0.8393 GB, free: 12.67 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 1.604e-05/0.5153, allocations: 11.75 kB / 0.8393 GB, free: 12.66 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.242e-06/0.5153, allocations: 0 / 0.8393 GB, free: 12.66 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005473/0.5159, allocations: 84.78 kB / 0.8394 GB, free: 12.58 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007734/0.5167, allocations: 183.8 kB / 0.8396 GB, free: 12.4 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001928/0.5186, allocations: 1.653 MB / 0.8412 GB, free: 10.6 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006573/0.5193, allocations: 103.4 kB / 0.8413 GB, free: 10.5 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.521e-05/0.5194, allocations: 43.91 kB / 0.8413 GB, free: 10.46 MB / 0.67 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 6 (weaDat.conTim.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTimMin.tNext,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (103): * Single equations (assignments): 102 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * 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 prepare postOptimizeDAE: time 0.0003943/0.5198, allocations: 313.5 kB / 0.8416 GB, free: 10.14 MB / 0.67 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001697/0.5199, allocations: 103.3 kB / 0.8417 GB, free: 10.04 MB / 0.67 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002623/0.5226, allocations: 1.29 MB / 0.843 GB, free: 8.742 MB / 0.67 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.39e-05/0.5226, allocations: 12 kB / 0.843 GB, free: 8.73 MB / 0.67 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.415e-06/0.5226, allocations: 0 / 0.843 GB, free: 8.73 MB / 0.67 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.398e-06/0.5226, allocations: 3.984 kB / 0.843 GB, free: 8.727 MB / 0.67 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003605/0.5262, allocations: 2.501 MB / 0.8454 GB, free: 6.16 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.849e-06/0.5263, allocations: 3.984 kB / 0.8454 GB, free: 6.156 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006999/0.527, allocations: 175.7 kB / 0.8456 GB, free: 5.984 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004291/0.5274, allocations: 72.8 kB / 0.8457 GB, free: 5.91 MB / 0.67 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.638e-05/0.5275, allocations: 31.97 kB / 0.8457 GB, free: 5.879 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001708/0.5292, allocations: 1.678 MB / 0.8474 GB, free: 4.055 MB / 0.67 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.495e-06/0.5292, allocations: 3.938 kB / 0.8474 GB, free: 4.051 MB / 0.67 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001987/0.5312, allocations: 1.116 MB / 0.8484 GB, free: 2.922 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003733/0.5316, allocations: 324 kB / 0.8488 GB, free: 2.586 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001259/0.5317, allocations: 23.94 kB / 0.8488 GB, free: 2.562 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006849/0.5324, allocations: 59.94 kB / 0.8488 GB, free: 2.504 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001203/0.5325, allocations: 80.83 kB / 0.8489 GB, free: 2.422 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.24e-05/0.5326, allocations: 47.91 kB / 0.849 GB, free: 2.375 MB / 0.67 GB Notification: Performance of sorting global known variables: time 0.000628/0.5332, allocations: 0.5537 MB / 0.8495 GB, free: 1.828 MB / 0.67 GB Notification: Performance of sort global known variables: time 1.21e-07/0.5332, allocations: 0 / 0.8495 GB, free: 1.828 MB / 0.67 GB Notification: Performance of remove unused functions: time 0.0008329/0.5341, allocations: 410.6 kB / 0.8499 GB, free: 1.426 MB / 0.67 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition2,$whenCondition1,weaDat.conTimMin.tNext,weaDat.conTim.tNext) * Number of discrete states: 2 (weaDat.conTim.tNext,weaDat.conTimMin.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (107): * Single equations (assignments): 104 * 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,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003361/0.5375, allocations: 2.176 MB / 0.852 GB, free: 15.44 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 0.001643/0.5391, allocations: 0.925 MB / 0.8529 GB, free: 14.5 MB / 0.6856 GB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.5391, allocations: 0 / 0.8529 GB, free: 14.5 MB / 0.6856 GB Notification: Performance of simCode: created simulation system equations: time 0.0009427/0.5401, allocations: 0.5899 MB / 0.8535 GB, free: 13.9 MB / 0.6856 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001182/0.5413, allocations: 303.3 kB / 0.8538 GB, free: 13.63 MB / 0.6856 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01194/0.5532, allocations: 7.963 MB / 0.8616 GB, free: 5.512 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006605/0.5539, allocations: 1.158 MB / 0.8627 GB, free: 4.328 MB / 0.6856 GB Notification: Performance of simCode: alias equations: time 0.0007634/0.5547, allocations: 287.8 kB / 0.863 GB, free: 4.043 MB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007144/0.5554, allocations: 0.5578 MB / 0.8635 GB, free: 3.484 MB / 0.6856 GB Notification: Performance of SimCode: time 3.61e-07/0.5554, allocations: 0 / 0.8635 GB, free: 3.484 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.334/0.8894, allocations: 25.68 MB / 0.8886 GB, free: 53.02 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.7/12.59, allocations: 10.25 kB / 0.8886 GB, free: 53.02 MB / 0.6856 GB (rm -f IDEAS_IDEAS.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface.pipe ; mkfifo IDEAS_IDEAS.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface.pipe ; head -c 1048576 < IDEAS_IDEAS.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface.pipe >> ../files/IDEAS_IDEAS.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface.sim & python3 -m fmpy simulate --output-file IDEAS_IDEAS.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface_res.csv --start-time 1.82304e+07 --stop-time 1.83168e+07 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 34.56 IDEAS_IDEAS_BoundaryConditions_SolarIrradiation_Examples_DirectTiltedSurface.fmu > IDEAS_IDEAS.BoundaryConditions.SolarIrradiation.Examples.DirectTiltedSurface.pipe 2>&1)