Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.LIDEAS.Examples.BaseClasses.SimInfoManagerInputs.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: "" <> buildModelFMU(IDEAS.LIDEAS.Examples.BaseClasses.SimInfoManagerInputs,fileNamePrefix="IDEAS_dev_IDEAS_LIDEAS_Examples_BaseClasses_SimInfoManagerInputs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.LIDEAS.Examples.BaseClasses.SimInfoManagerInputs,fileNamePrefix="IDEAS_dev_IDEAS_LIDEAS_Examples_BaseClasses_SimInfoManagerInputs",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.001137/0.001136, allocations: 108 kB / 15.61 MB, free: 152 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.001145/0.001145, allocations: 196.8 kB / 16.53 MB, free: 6.699 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.369/1.369, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9415/0.9415, allocations: 135.1 MB / 425.5 MB, free: 12.04 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001407/0.001407, allocations: 63.91 kB / 0.5054 GB, free: 5.234 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1549/0.1564, allocations: 80.91 MB / 0.5844 GB, free: 4.477 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.LIDEAS.Examples.BaseClasses.SimInfoManagerInputs): time 0.01012/0.1665, allocations: 7.116 MB / 0.5914 GB, free: 13.32 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.4425/0.6091, allocations: 155.5 MB / 0.7433 GB, free: 6.758 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001335/0.6105, allocations: 36.84 kB / 0.7433 GB, free: 6.742 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.001023/0.6115, allocations: 283.7 kB / 0.7436 GB, free: 6.488 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.002619/0.6142, allocations: 0.715 MB / 0.7443 GB, free: 5.934 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.003265/0.6174, allocations: 1.205 MB / 0.7454 GB, free: 5.031 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.004528/0.622, allocations: 4.027 MB / 0.7494 GB, free: 2.617 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00353/0.6255, allocations: 2.657 MB / 0.752 GB, free: 1.121 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003177/0.6287, allocations: 1.626 MB / 0.7536 GB, free: 15.68 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002552/0.6313, allocations: 1.727 MB / 0.7552 GB, free: 13.95 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.001057/0.6324, allocations: 348 kB / 0.7556 GB, free: 13.61 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002622/0.635, allocations: 0.9056 MB / 0.7565 GB, free: 12.7 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.001348/0.6364, allocations: 0.8993 MB / 0.7573 GB, free: 11.8 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.002875/0.6393, allocations: 1.717 MB / 0.759 GB, free: 10.07 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.00658/0.6459, allocations: 4.502 MB / 0.7634 GB, free: 5.559 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 5.421e-06/0.6459, allocations: 4 kB / 0.7634 GB, free: 5.555 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.953e-06/0.6459, allocations: 0 / 0.7634 GB, free: 5.555 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 0.0001548/0.6461, allocations: 0 / 0.7634 GB, free: 5.555 MB / 0.5762 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 774 * Number of variables: 774 Notification: Performance of Generate backend data structure: time 0.009493/0.6556, allocations: 3.869 MB / 0.7672 GB, free: 1.621 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.419e-05/0.6556, allocations: 12.03 kB / 0.7672 GB, free: 1.609 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009368/0.6566, allocations: 431.6 kB / 0.7676 GB, free: 1.18 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0102/0.6668, allocations: 1.295 MB / 0.7689 GB, free: 15.88 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004889/0.6717, allocations: 1.875 MB / 0.7707 GB, free: 13.95 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002171/0.672, allocations: 226.1 kB / 0.7709 GB, free: 13.73 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009122/0.6729, allocations: 295.9 kB / 0.7712 GB, free: 13.44 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01163/0.6845, allocations: 4.217 MB / 0.7753 GB, free: 9.109 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.044e-05/0.6847, allocations: 0 / 0.7753 GB, free: 9.109 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000745/0.6854, allocations: 127.9 kB / 0.7755 GB, free: 8.984 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.166e-05/0.6855, allocations: 76 kB / 0.7755 GB, free: 8.91 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01259/0.6981, allocations: 4.569 MB / 0.78 GB, free: 4.328 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02565/0.7238, allocations: 12.87 MB / 0.7926 GB, free: 6.723 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01162/0.7355, allocations: 3.769 MB / 0.7962 GB, free: 2.941 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004314/0.7398, allocations: 1.557 MB / 0.7978 GB, free: 1.379 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001313/0.7412, allocations: 1.073 MB / 0.7988 GB, free: 84 kB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005151/0.7463, allocations: 1.944 MB / 0.8007 GB, free: 14.12 MB / 0.6231 GB Notification: Performance of pre-optimization done (n=223): time 5.35e-06/0.7464, allocations: 3.938 kB / 0.8007 GB, free: 14.11 MB / 0.6231 GB Notification: Performance of matching and sorting (n=223): time 0.01497/0.7614, allocations: 4.907 MB / 0.8055 GB, free: 9.18 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001726/0.7616, allocations: 257.3 kB / 0.8057 GB, free: 8.871 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003738/0.7653, allocations: 1.905 MB / 0.8076 GB, free: 6.918 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 0.0004668/0.7658, allocations: 65.7 kB / 0.8077 GB, free: 6.848 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.001169/0.767, allocations: 1.224 MB / 0.8089 GB, free: 5.602 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 0.00115/0.7681, allocations: 0.7548 MB / 0.8096 GB, free: 4.836 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001464/0.7696, allocations: 0.5149 MB / 0.8101 GB, free: 4.312 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.0001089/0.7697, allocations: 301.1 kB / 0.8104 GB, free: 4.016 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003981/0.7737, allocations: 1.425 MB / 0.8118 GB, free: 2.586 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004344/0.7781, allocations: 1.747 MB / 0.8135 GB, free: 0.7344 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008274/0.7864, allocations: 3.17 MB / 0.8166 GB, free: 13.49 MB / 0.6387 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.164e-05/0.7864, allocations: 0 / 0.8166 GB, free: 13.49 MB / 0.6387 GB Notification: Performance of matching and sorting (n=276) (initialization): time 0.01065/0.7971, allocations: 3.681 MB / 0.8202 GB, free: 9.797 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 2.72e-05/0.7972, allocations: 12 kB / 0.8202 GB, free: 9.785 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.684e-05/0.7972, allocations: 7.984 kB / 0.8202 GB, free: 9.777 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006526/0.7978, allocations: 92.78 kB / 0.8203 GB, free: 9.684 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003846/0.8017, allocations: 0.7019 MB / 0.821 GB, free: 8.98 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00216/0.8039, allocations: 1.635 MB / 0.8226 GB, free: 7.203 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003552/0.8074, allocations: 441.4 kB / 0.823 GB, free: 6.77 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000493/0.808, allocations: 135.8 kB / 0.8231 GB, free: 6.637 MB / 0.6387 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * Number of states: 0 () * Number of discrete variables: 12 (radSol[1].solAzi.outsidePolarCircle,radSol[2].solAzi.outsidePolarCircle,radSol[3].solAzi.outsidePolarCircle,radSol[4].solAzi.outsidePolarCircle,radSol[5].solAzi.outsidePolarCircle,radSol[6].solAzi.outsidePolarCircle,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 (274): * Single equations (assignments): 273 * 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.001938/0.8099, allocations: 0.7782 MB / 0.8239 GB, free: 5.848 MB / 0.6387 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008354/0.8107, allocations: 225.2 kB / 0.8241 GB, free: 5.625 MB / 0.6387 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01138/0.8221, allocations: 4.029 MB / 0.828 GB, free: 1.578 MB / 0.6387 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.561e-05/0.8222, allocations: 31.92 kB / 0.8281 GB, free: 1.547 MB / 0.6387 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.035e-06/0.8222, allocations: 0 / 0.8281 GB, free: 1.547 MB / 0.6387 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.352e-05/0.8222, allocations: 15.95 kB / 0.8281 GB, free: 1.531 MB / 0.6387 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01593/0.8382, allocations: 7.228 MB / 0.8351 GB, free: 10.12 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.282e-05/0.8382, allocations: 0 / 0.8351 GB, free: 10.12 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003329/0.8416, allocations: 0.6045 MB / 0.8357 GB, free: 9.52 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005479/0.8422, allocations: 72.8 kB / 0.8358 GB, free: 9.445 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000425/0.8426, allocations: 71.94 kB / 0.8359 GB, free: 9.375 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002265/0.8449, allocations: 1.663 MB / 0.8375 GB, free: 7.57 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/0.8449, allocations: 4.062 kB / 0.8375 GB, free: 7.566 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009116/0.854, allocations: 3.322 MB / 0.8407 GB, free: 4.223 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001483/0.8555, allocations: 0.6732 MB / 0.8414 GB, free: 3.527 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006467/0.8562, allocations: 67.69 kB / 0.8415 GB, free: 3.461 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002785/0.859, allocations: 268.9 kB / 0.8417 GB, free: 3.199 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003639/0.8594, allocations: 161.8 kB / 0.8419 GB, free: 3.039 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002262/0.8596, allocations: 83.95 kB / 0.8419 GB, free: 2.957 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.002466/0.8621, allocations: 1.442 MB / 0.8433 GB, free: 1.496 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.734e-06/0.8621, allocations: 0 / 0.8433 GB, free: 1.496 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.00256/0.8647, allocations: 0.8799 MB / 0.8442 GB, free: 0.6133 MB / 0.6544 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (251): * Single equations (assignments): 248 * 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.01025/0.8749, allocations: 4.458 MB / 0.8486 GB, free: 12.32 MB / 0.67 GB Notification: Performance of simCode: created initialization part: time 0.01479/0.8897, allocations: 5.732 MB / 0.8542 GB, free: 6.578 MB / 0.67 GB Notification: Performance of simCode: created event and clocks part: time 5.621e-06/0.8898, allocations: 0 / 0.8542 GB, free: 6.578 MB / 0.67 GB Notification: Performance of simCode: created simulation system equations: time 0.004274/0.8941, allocations: 1.724 MB / 0.8558 GB, free: 4.844 MB / 0.67 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002768/0.8969, allocations: 463.7 kB / 0.8563 GB, free: 4.414 MB / 0.67 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2675/1.164, allocations: 25.35 MB / 0.881 GB, free: 206.8 MB / 0.67 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001363/1.166, allocations: 2.207 MB / 0.8832 GB, free: 205.9 MB / 0.67 GB Notification: Performance of simCode: alias equations: time 0.003381/1.169, allocations: 0.9439 MB / 0.8841 GB, free: 205.9 MB / 0.67 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001872/1.171, allocations: 1.31 MB / 0.8854 GB, free: 204.9 MB / 0.67 GB Notification: Performance of SimCode: time 1.082e-06/1.171, allocations: 0 / 0.8854 GB, free: 204.9 MB / 0.67 GB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeMain.mo:787:13-787:114:writable] Error: Internal error Failed to copy path /home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/Resources/weatherdata/CustomWeatherFiles/example.txt to IDEAS_dev_IDEAS_LIDEAS_Examples_BaseClasses_SimInfoManagerInputs.fmutmp/resources//home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/Resources/weatherdata/CustomWeatherFiles Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1064/1.277, allocations: 57.91 MB / 0.9419 GB, free: 179.5 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.75/14.03, allocations: 17.28 kB / 0.942 GB, free: 179.5 MB / 0.67 GB (rm -f IDEAS_dev_IDEAS.LIDEAS.Examples.BaseClasses.SimInfoManagerInputs.pipe ; mkfifo IDEAS_dev_IDEAS.LIDEAS.Examples.BaseClasses.SimInfoManagerInputs.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.LIDEAS.Examples.BaseClasses.SimInfoManagerInputs.pipe >> ../files/IDEAS_dev_IDEAS.LIDEAS.Examples.BaseClasses.SimInfoManagerInputs.sim & python3 -m fmpy simulate --output-file IDEAS_dev_IDEAS.LIDEAS.Examples.BaseClasses.SimInfoManagerInputs_res.csv --start-time 0 --stop-time 1000 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.4 IDEAS_dev_IDEAS_LIDEAS_Examples_BaseClasses_SimInfoManagerInputs.fmu > IDEAS_dev_IDEAS.LIDEAS.Examples.BaseClasses.SimInfoManagerInputs.pipe 2>&1)