Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr SolarTherm_SolarTherm.Models.Sources.SolarModel.Sun.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/SolarTherm 0.2.0-master/package.mo", uses=false) Using package SolarTherm with version 0.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/SolarTherm 0.2.0-master/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(SolarTherm.Models.Sources.SolarModel.Sun,fileNamePrefix="SolarTherm_SolarTherm_Models_Sources_SolarModel_Sun",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(SolarTherm.Models.Sources.SolarModel.Sun,fileNamePrefix="SolarTherm_SolarTherm_Models_Sources_SolarModel_Sun",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.006139/0.006139, allocations: 97.78 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.00164/0.00164, allocations: 186.3 kB / 16.67 MB, free: 5.926 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.371/1.371, allocations: 205.1 MB / 222.6 MB, free: 4.539 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/SolarTherm 0.2.0-master/package.mo): time 0.2321/0.2321, allocations: 24.83 MB / 294.7 MB, free: 12.29 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002056/0.002056, allocations: 67.91 kB / 411.8 MB, free: 2.195 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2457/0.2478, allocations: 52.29 MB / 464.1 MB, free: 7.508 MB / 334.1 MB Notification: Performance of NFInst.instantiate(SolarTherm.Models.Sources.SolarModel.Sun): time 0.002659/0.2505, allocations: 1.561 MB / 465.6 MB, free: 5.93 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001061/0.2515, allocations: 0.6647 MB / 466.3 MB, free: 5.258 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.379e-05/0.2516, allocations: 0 / 466.3 MB, free: 5.258 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.709e-05/0.2516, allocations: 4 kB / 466.3 MB, free: 5.254 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 4.217e-05/0.2517, allocations: 3.938 kB / 466.3 MB, free: 5.25 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003704/0.2521, allocations: 87.59 kB / 466.4 MB, free: 5.164 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 7.031e-05/0.2521, allocations: 23.86 kB / 466.4 MB, free: 5.141 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.422e-05/0.2522, allocations: 4 kB / 466.4 MB, free: 5.137 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.129e-05/0.2522, allocations: 4 kB / 466.4 MB, free: 5.133 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.261e-05/0.2523, allocations: 19.91 kB / 466.5 MB, free: 5.113 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.975e-06/0.2523, allocations: 0 / 466.5 MB, free: 5.113 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002356/0.2525, allocations: 71.86 kB / 466.5 MB, free: 5.043 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 1.291e-05/0.2525, allocations: 7.938 kB / 466.5 MB, free: 5.035 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 2.187e-05/0.2526, allocations: 7.938 kB / 466.5 MB, free: 5.027 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001696/0.2527, allocations: 71.59 kB / 466.6 MB, free: 4.965 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.2527, allocations: 3.938 kB / 466.6 MB, free: 4.961 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.052e-06/0.2528, allocations: 0 / 466.6 MB, free: 4.961 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.508e-06/0.2528, allocations: 0 / 466.6 MB, free: 4.961 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0003603/0.2531, allocations: 347.3 kB / 467 MB, free: 4.574 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.698e-05/0.2532, allocations: 12.03 kB / 467 MB, free: 4.562 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.541e-05/0.2532, allocations: 30.75 kB / 467 MB, free: 4.523 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.848e-05/0.2533, allocations: 16.89 kB / 467 MB, free: 4.508 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001339/0.2534, allocations: 164.4 kB / 467.2 MB, free: 4.309 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.979e-06/0.2534, allocations: 384 / 467.2 MB, free: 4.309 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.139e-05/0.2534, allocations: 4.375 kB / 467.2 MB, free: 4.305 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001336/0.2536, allocations: 67.52 kB / 467.2 MB, free: 4.227 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.504e-06/0.2536, allocations: 3.938 kB / 467.2 MB, free: 4.223 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.005e-06/0.2536, allocations: 0 / 467.2 MB, free: 4.223 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.02e-06/0.2536, allocations: 0 / 467.2 MB, free: 4.223 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.28e-05/0.2536, allocations: 12 kB / 467.3 MB, free: 4.211 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003971/0.2541, allocations: 356.9 kB / 467.6 MB, free: 3.809 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.581e-05/0.2541, allocations: 45.14 kB / 467.6 MB, free: 3.746 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.038e-05/0.2542, allocations: 17.78 kB / 467.7 MB, free: 3.723 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000495/0.2547, allocations: 210.2 kB / 467.9 MB, free: 3.48 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.81e-05/0.2547, allocations: 30.56 kB / 467.9 MB, free: 3.441 MB / 334.1 MB Notification: Performance of pre-optimization done (n=3): time 1.162e-06/0.2547, allocations: 4 kB / 467.9 MB, free: 3.438 MB / 334.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001695/0.2549, allocations: 49.62 kB / 468 MB, free: 3.383 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.936e-05/0.255, allocations: 81.36 kB / 468 MB, free: 3.285 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.281e-05/0.2551, allocations: 105.8 kB / 468.1 MB, free: 3.172 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.449e-05/0.2551, allocations: 29.64 kB / 468.2 MB, free: 3.137 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.148e-05/0.2552, allocations: 92.08 kB / 468.3 MB, free: 3.043 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.551e-05/0.2552, allocations: 15.84 kB / 468.3 MB, free: 3.027 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.045e-05/0.2552, allocations: 13.72 kB / 468.3 MB, free: 3.008 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001398/0.2554, allocations: 322.8 kB / 468.6 MB, free: 2.684 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.215e-05/0.2554, allocations: 0 / 468.6 MB, free: 2.684 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.278e-05/0.2554, allocations: 21.72 kB / 468.6 MB, free: 2.656 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.72e-05/0.2554, allocations: 21.66 kB / 468.6 MB, free: 2.629 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.413e-06/0.2555, allocations: 0 / 468.6 MB, free: 2.629 MB / 334.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 7.817e-05/0.2555, allocations: 45.69 kB / 468.7 MB, free: 2.578 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.206e-05/0.2556, allocations: 4 kB / 468.7 MB, free: 2.574 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.382e-05/0.2556, allocations: 4 kB / 468.7 MB, free: 2.57 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.068e-05/0.2556, allocations: 8.031 kB / 468.7 MB, free: 2.562 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.819e-05/0.2556, allocations: 0 / 468.7 MB, free: 2.562 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.258e-06/0.2556, allocations: 3.938 kB / 468.7 MB, free: 2.559 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.651e-05/0.2557, allocations: 7.938 kB / 468.7 MB, free: 2.551 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.731e-06/0.2557, allocations: 0 / 468.7 MB, free: 2.551 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.496e-05/0.2558, allocations: 113.8 kB / 468.8 MB, free: 2.43 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.17e-05/0.2558, allocations: 11.97 kB / 468.8 MB, free: 2.418 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.816e-05/0.2559, allocations: 44.81 kB / 468.9 MB, free: 2.371 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.255e-06/0.2559, allocations: 32 / 468.9 MB, free: 2.371 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.797e-06/0.2559, allocations: 8 kB / 468.9 MB, free: 2.363 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.588e-06/0.2559, allocations: 3.938 kB / 468.9 MB, free: 2.359 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003005/0.2562, allocations: 270.8 kB / 469.2 MB, free: 2.039 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.757e-06/0.2563, allocations: 0 / 469.2 MB, free: 2.039 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.378e-05/0.2563, allocations: 8 kB / 469.2 MB, free: 2.031 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.639e-06/0.2563, allocations: 3.984 kB / 469.2 MB, free: 2.027 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.219e-06/0.2563, allocations: 0 / 469.2 MB, free: 2.027 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.085e-06/0.2563, allocations: 3.938 kB / 469.2 MB, free: 2.023 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.2563, allocations: 0 / 469.2 MB, free: 2.023 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001503/0.2565, allocations: 222.8 kB / 469.4 MB, free: 1.789 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.736e-05/0.2565, allocations: 85.06 kB / 469.5 MB, free: 1.688 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.1e-05/0.2565, allocations: 0 / 469.5 MB, free: 1.688 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.203e-05/0.2566, allocations: 3.938 kB / 469.5 MB, free: 1.684 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.683e-05/0.2566, allocations: 4 kB / 469.5 MB, free: 1.68 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.735e-06/0.2566, allocations: 3.938 kB / 469.5 MB, free: 1.676 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.488e-05/0.2567, allocations: 87.31 kB / 469.6 MB, free: 1.59 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2567, allocations: 0 / 469.6 MB, free: 1.59 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002723/0.257, allocations: 27.86 kB / 469.6 MB, free: 1.562 MB / 334.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005645/0.2575, allocations: 0.7781 MB / 470.4 MB, free: 0.7539 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001056/0.2577, allocations: 49.72 kB / 470.4 MB, free: 0.6992 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.873e-06/0.2577, allocations: 0 / 470.4 MB, free: 0.6992 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.931e-05/0.2577, allocations: 33.64 kB / 470.5 MB, free: 0.6602 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002749/0.258, allocations: 7.938 kB / 470.5 MB, free: 0.6523 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001213/0.2592, allocations: 1.315 MB / 471.8 MB, free: 15.25 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000343/0.2596, allocations: 0.6807 MB / 472.5 MB, free: 14.54 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.498e-06/0.2596, allocations: 3.906 kB / 472.5 MB, free: 14.54 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.499e-05/0.2596, allocations: 11.44 kB / 472.5 MB, free: 14.52 MB / 350.1 MB Notification: Performance of SimCode: time 2.1e-07/0.2596, allocations: 0 / 472.5 MB, free: 14.52 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02124/0.2809, allocations: 1.482 MB / 474 MB, free: 13.05 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.519/7.8, allocations: 14.83 kB / 474 MB, free: 13.05 MB / 350.1 MB (rm -f SolarTherm_SolarTherm.Models.Sources.SolarModel.Sun.pipe ; mkfifo SolarTherm_SolarTherm.Models.Sources.SolarModel.Sun.pipe ; head -c 1048576 < SolarTherm_SolarTherm.Models.Sources.SolarModel.Sun.pipe >> ../files/SolarTherm_SolarTherm.Models.Sources.SolarModel.Sun.sim & python3 -m fmpy simulate --output-file SolarTherm_SolarTherm.Models.Sources.SolarModel.Sun_res.csv --start-time 0 --stop-time 100000 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 60.024 SolarTherm_SolarTherm_Models_Sources_SolarModel_Sun.fmu > SolarTherm_SolarTherm.Models.Sources.SolarModel.Sun.pipe 2>&1)