Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.Examples.ZenithAngle.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-master/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/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: translateModel(IDEAS.BoundaryConditions.SolarGeometry.Examples.ZenithAngle,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.Examples.ZenithAngle") translateModel(IDEAS.BoundaryConditions.SolarGeometry.Examples.ZenithAngle,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.Examples.ZenithAngle") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000865/0.000865, allocations: 92.23 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009711/0.0009711, allocations: 184 kB / 16.92 MB, free: 6.922 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.265/1.265, allocations: 223.3 MB / 241 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8526/0.8526, allocations: 135.3 MB / 427.4 MB, free: 14.29 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003187/0.0003187, allocations: 8 kB / 0.5082 GB, free: 4.754 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1342/0.1346, allocations: 82.3 MB / 0.5886 GB, free: 2.625 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.BoundaryConditions.SolarGeometry.Examples.ZenithAngle): time 0.004174/0.1388, allocations: 3.679 MB / 0.5922 GB, free: 14.93 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.3758/0.5146, allocations: 146.5 MB / 0.7353 GB, free: 14.86 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007285/0.5154, allocations: 13.66 kB / 0.7353 GB, free: 14.85 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.000605/0.516, allocations: 136.3 kB / 0.7355 GB, free: 14.77 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.001669/0.5177, allocations: 394.6 kB / 0.7358 GB, free: 14.55 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.002141/0.5198, allocations: 0.6803 MB / 0.7365 GB, free: 14.17 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.001571/0.5214, allocations: 1.095 MB / 0.7376 GB, free: 13.64 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001021/0.5224, allocations: 0.5818 MB / 0.7381 GB, free: 13.34 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006212/0.5231, allocations: 287.9 kB / 0.7384 GB, free: 13.22 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005912/0.5237, allocations: 332.8 kB / 0.7387 GB, free: 13.05 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0001399/0.5238, allocations: 20.78 kB / 0.7387 GB, free: 13.05 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009769/0.5248, allocations: 358.8 kB / 0.7391 GB, free: 12.95 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0002429/0.5251, allocations: 167 kB / 0.7392 GB, free: 12.87 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0005781/0.5257, allocations: 407.9 kB / 0.7396 GB, free: 12.59 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.001451/0.5271, allocations: 1.077 MB / 0.7407 GB, free: 12.3 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.316e-06/0.5271, allocations: 0 / 0.7407 GB, free: 12.3 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.734e-06/0.5271, allocations: 1.344 kB / 0.7407 GB, free: 12.3 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 4.965e-05/0.5272, allocations: 0 / 0.7407 GB, free: 12.3 MB / 0.5606 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 198 * Number of variables: 198 Notification: Performance of Generate backend data structure: time 0.002344/0.5295, allocations: 1.116 MB / 0.7418 GB, free: 11.5 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.642e-05/0.5296, allocations: 10.03 kB / 0.7418 GB, free: 11.5 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001048/0.5306, allocations: 187.5 kB / 0.742 GB, free: 11.44 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001161/0.5318, allocations: 0.7002 MB / 0.7426 GB, free: 10.97 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.649e-05/0.5319, allocations: 61.66 kB / 0.7427 GB, free: 10.94 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001212/0.532, allocations: 77.38 kB / 0.7428 GB, free: 10.92 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001477/0.5335, allocations: 0.8575 MB / 0.7436 GB, free: 10.49 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.003e-05/0.5335, allocations: 5.359 kB / 0.7436 GB, free: 10.48 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.664e-05/0.5336, allocations: 36.25 kB / 0.7437 GB, free: 10.46 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.536e-05/0.5336, allocations: 17.88 kB / 0.7437 GB, free: 10.46 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001615/0.5352, allocations: 1.067 MB / 0.7447 GB, free: 9.949 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003965/0.5392, allocations: 2.413 MB / 0.7471 GB, free: 8.113 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001284/0.5405, allocations: 0.806 MB / 0.7479 GB, free: 7.66 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004828/0.541, allocations: 285.8 kB / 0.7481 GB, free: 7.516 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 7.622e-05/0.5411, allocations: 31.09 kB / 0.7482 GB, free: 7.5 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007231/0.5418, allocations: 419.5 kB / 0.7486 GB, free: 7.234 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=70): time 2.595e-06/0.5419, allocations: 0 / 0.7486 GB, free: 7.234 MB / 0.5606 GB Notification: Performance of matching and sorting (n=70): time 0.002818/0.5447, allocations: 1.089 MB / 0.7496 GB, free: 6.637 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001128/0.5448, allocations: 194.3 kB / 0.7498 GB, free: 6.414 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007438/0.5456, allocations: 0.5791 MB / 0.7504 GB, free: 6.07 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 6.071e-05/0.5456, allocations: 43.58 kB / 0.7504 GB, free: 6.027 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002804/0.5459, allocations: 365.7 kB / 0.7508 GB, free: 5.703 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001883/0.5461, allocations: 233.8 kB / 0.751 GB, free: 5.5 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.353e-05/0.5462, allocations: 65.56 kB / 0.751 GB, free: 5.453 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001505/0.5464, allocations: 373.8 kB / 0.7514 GB, free: 5.094 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004505/0.5468, allocations: 242 kB / 0.7516 GB, free: 4.973 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005197/0.5473, allocations: 334.7 kB / 0.752 GB, free: 4.75 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009894/0.5483, allocations: 0.5469 MB / 0.7525 GB, free: 4.195 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.517e-06/0.5484, allocations: 0 / 0.7525 GB, free: 4.195 MB / 0.5606 GB Notification: Performance of matching and sorting (n=83) (initialization): time 0.001734/0.5501, allocations: 0.7704 MB / 0.7532 GB, free: 3.414 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.767e-05/0.5501, allocations: 4 kB / 0.7532 GB, free: 3.41 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.031e-06/0.5501, allocations: 0 / 0.7532 GB, free: 3.41 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005671/0.5507, allocations: 88.86 kB / 0.7533 GB, free: 3.32 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005655/0.5513, allocations: 147.8 kB / 0.7535 GB, free: 3.176 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00195/0.5532, allocations: 1.536 MB / 0.755 GB, free: 1.504 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006206/0.5539, allocations: 91.38 kB / 0.7551 GB, free: 1.418 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.539e-05/0.554, allocations: 31.97 kB / 0.7551 GB, free: 1.387 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 8 (weaDat.conTim.canRepeatWeatherFile,weaDat.conTimMin.canRepeatWeatherFile,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 (81): * Single equations (assignments): 80 * 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.0003973/0.5544, allocations: 249.7 kB / 0.7553 GB, free: 1.133 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001284/0.5545, allocations: 82.98 kB / 0.7554 GB, free: 1.051 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002125/0.5566, allocations: 0.9642 MB / 0.7563 GB, free: 80 kB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.786e-06/0.5566, allocations: 11.98 kB / 0.7564 GB, free: 68 kB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.737e-06/0.5567, allocations: 4.875 kB / 0.7564 GB, free: 64 kB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.388e-06/0.5567, allocations: 3.984 kB / 0.7564 GB, free: 60 kB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00297/0.5596, allocations: 1.836 MB / 0.7582 GB, free: 14.16 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.214e-06/0.5597, allocations: 7.969 kB / 0.7582 GB, free: 14.16 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005196/0.5602, allocations: 131.8 kB / 0.7583 GB, free: 14.03 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005154/0.5607, allocations: 92.77 kB / 0.7584 GB, free: 13.93 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.054e-05/0.5608, allocations: 20.05 kB / 0.7584 GB, free: 13.91 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001775/0.5626, allocations: 1.559 MB / 0.7599 GB, free: 12.22 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.5626, allocations: 0 / 0.7599 GB, free: 12.22 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001739/0.5643, allocations: 0.9063 MB / 0.7608 GB, free: 11.29 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003543/0.5647, allocations: 271.8 kB / 0.7611 GB, free: 11 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001097/0.5648, allocations: 16 kB / 0.7611 GB, free: 10.99 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005645/0.5654, allocations: 63.94 kB / 0.7611 GB, free: 10.93 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000123/0.5655, allocations: 60.92 kB / 0.7612 GB, free: 10.87 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.446e-05/0.5656, allocations: 27.98 kB / 0.7612 GB, free: 10.84 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0005101/0.5661, allocations: 431 kB / 0.7616 GB, free: 10.43 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.2e-07/0.5661, allocations: 0 / 0.7616 GB, free: 10.43 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0008076/0.5669, allocations: 279.3 kB / 0.7619 GB, free: 10.15 MB / 0.5762 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 (81): * Single equations (assignments): 78 * 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.001265/0.5682, allocations: 0.5967 MB / 0.7625 GB, free: 9.762 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.00141/0.5696, allocations: 0.7548 MB / 0.7632 GB, free: 9 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.906e-06/0.5696, allocations: 0 / 0.7632 GB, free: 9 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0007942/0.5704, allocations: 492.5 kB / 0.7637 GB, free: 8.504 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001195/0.5716, allocations: 249.4 kB / 0.7639 GB, free: 8.266 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003886/0.5755, allocations: 2.109 MB / 0.766 GB, free: 6.129 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005667/0.5761, allocations: 0.9916 MB / 0.767 GB, free: 5.109 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002734/0.5764, allocations: 107.3 kB / 0.7671 GB, free: 5.008 MB / 0.5762 GB Notification: Performance of SimCode: time 1.873e-06/0.5764, allocations: 0 / 0.7671 GB, free: 5.008 MB / 0.5762 GB Notification: Performance of Templates: time 0.02473/0.6011, allocations: 16.88 MB / 0.7835 GB, free: 4.172 MB / 0.5919 GB make -j1 -f IDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.Examples.ZenithAngle.makefile make -j1 -f IDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.Examples.ZenithAngle.makefile clang++ -std=c++14 -fopenmp=libomp -Winvalid-pch -O2 -g -DNDEBUG -fPIC -std=c++11 -DBOOST_ALL_DYN_LINK -DUSE_DGESV -DUSE_LOGGER -DOMC_BUILD -DUSE_THREAD -DSUNDIALS_MAJOR_VERSION=5 -DSUNDIALS_MINOR_VERSION=4 -DPMC_USE_SUNDIALS -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/" -I. "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Resources/C-Sources""-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/Resources/C-Sources" -I"." -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/sundials" "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Resources/C-Sources" "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/Resources/C-Sources" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppIDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.Examples.ZenithAngleCalcHelperMain.o OMCppIDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.Examples.ZenithAngleCalcHelperMain.cpp In file included from OMCppIDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.Examples.ZenithAngleCalcHelperMain.cpp:28: In file included from ./OMCppIDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.Examples.ZenithAngleFunctions.cpp:7: /home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/Resources/C-Sources/getTimeSpan.c:27:9: error: cannot initialize a variable of type 'char *' with an rvalue of type 'void *' char *result = malloc(len1 + len2 + 1); ^ ~~~~~~~~~~~~~~~~~~~~~~~ 1 error generated. make: *** [: OMCppIDEAS_dev_IDEAS.BoundaryConditions.SolarGeometry.Examples.ZenithAngleCalcHelperMain.o] Error 1