Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.Transmission.Functions.Validation.SelectCable_med.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(BuildingSystems.Electrical.Transmission.Functions.Validation.SelectCable_med,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_Transmission_Functions_Validation_SelectCable_med",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Electrical.Transmission.Functions.Validation.SelectCable_med,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_Transmission_Functions_Validation_SelectCable_med",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.007535/0.007535, allocations: 99.83 kB / 15.73 MB, free: 6.012 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.001843/0.001843, allocations: 193.5 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.291/1.291, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002023/0.002023, allocations: 294.1 kB / 290.8 MB, free: 14.45 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9276/0.9276, allocations: 169.2 MB / 0.4983 GB, free: 4.445 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001722/0.001722, allocations: 91.84 kB / 0.6809 GB, free: 7.492 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3984/0.4001, allocations: 86.97 MB / 0.7659 GB, free: 3.871 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.Transmission.Functions.Validation.SelectCable_med): time 0.002395/0.4026, allocations: 1.409 MB / 0.7673 GB, free: 2.453 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.003192/0.4058, allocations: 2.664 MB / 0.7699 GB, free: 15.78 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.389e-05/0.4058, allocations: 7.938 kB / 0.7699 GB, free: 15.77 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.001621/0.4075, allocations: 0.5859 MB / 0.7704 GB, free: 15.19 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 5.85e-05/0.4075, allocations: 27.91 kB / 0.7705 GB, free: 15.16 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 4.488e-06/0.4075, allocations: 0 / 0.7705 GB, free: 15.16 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0002396/0.4078, allocations: 166.9 kB / 0.7706 GB, free: 15 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 6.452e-05/0.4079, allocations: 30.09 kB / 0.7707 GB, free: 14.97 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 7.636e-05/0.408, allocations: 63.67 kB / 0.7707 GB, free: 14.91 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001268/0.4081, allocations: 79.58 kB / 0.7708 GB, free: 14.83 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 1.44e-05/0.4081, allocations: 4 kB / 0.7708 GB, free: 14.83 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001099/0.4092, allocations: 471.3 kB / 0.7712 GB, free: 14.37 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 5.994e-05/0.4093, allocations: 31.84 kB / 0.7713 GB, free: 14.34 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 9.931e-05/0.4094, allocations: 99.36 kB / 0.7714 GB, free: 14.24 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0007045/0.4101, allocations: 437.6 kB / 0.7718 GB, free: 13.81 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 3.586e-06/0.4101, allocations: 3.938 kB / 0.7718 GB, free: 13.81 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.503e-06/0.4101, allocations: 0 / 0.7718 GB, free: 13.81 MB / 0.545 GB Notification: Performance of Transformations before backend: time 7.935e-06/0.4101, allocations: 0 / 0.7718 GB, free: 13.81 MB / 0.545 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 0 * Number of variables: 0 Notification: Performance of Generate backend data structure: time 0.0007631/0.4109, allocations: 0.5565 MB / 0.7723 GB, free: 13.2 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.633e-05/0.411, allocations: 8.031 kB / 0.7723 GB, free: 13.19 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.458e-05/0.411, allocations: 106 kB / 0.7724 GB, free: 13.08 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001733/0.4112, allocations: 104 kB / 0.7725 GB, free: 12.98 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002482/0.4114, allocations: 306.4 kB / 0.7728 GB, free: 12.64 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.006e-05/0.4115, allocations: 158.9 kB / 0.773 GB, free: 12.48 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.395e-05/0.4116, allocations: 158.9 kB / 0.7731 GB, free: 12.33 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 6.406e-05/0.4116, allocations: 105.5 kB / 0.7732 GB, free: 12.22 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.63e-05/0.4117, allocations: 79.22 kB / 0.7733 GB, free: 12.14 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.314e-05/0.4117, allocations: 154.5 kB / 0.7735 GB, free: 11.99 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.34e-05/0.4118, allocations: 150.6 kB / 0.7736 GB, free: 11.84 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.875e-05/0.4118, allocations: 158.5 kB / 0.7738 GB, free: 11.68 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003531/0.4122, allocations: 0.5445 MB / 0.7743 GB, free: 11.09 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 8.02e-05/0.4123, allocations: 165.1 kB / 0.7744 GB, free: 10.92 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.859e-05/0.4123, allocations: 84.14 kB / 0.7745 GB, free: 10.83 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 3.259e-05/0.4124, allocations: 75.28 kB / 0.7746 GB, free: 10.76 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.189e-05/0.4124, allocations: 113.8 kB / 0.7747 GB, free: 10.64 MB / 0.545 GB Notification: Performance of pre-optimization done (n=0): time 1.072e-06/0.4124, allocations: 0 / 0.7747 GB, free: 10.64 MB / 0.545 GB Notification: Performance of matching and sorting (n=0): time 0.0001766/0.4126, allocations: 57.44 kB / 0.7748 GB, free: 10.57 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.01e-05/0.4127, allocations: 126.7 kB / 0.7749 GB, free: 10.44 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004126/0.4131, allocations: 429.3 kB / 0.7753 GB, free: 10.01 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.489e-05/0.4131, allocations: 29.7 kB / 0.7753 GB, free: 9.973 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 8.739e-05/0.4132, allocations: 140.6 kB / 0.7755 GB, free: 9.832 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 2.895e-06/0.4132, allocations: 0 / 0.7755 GB, free: 9.832 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.391e-05/0.4133, allocations: 93.67 kB / 0.7755 GB, free: 9.734 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001115/0.4134, allocations: 342.8 kB / 0.7759 GB, free: 9.391 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001306/0.4136, allocations: 92.5 kB / 0.776 GB, free: 9.297 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000156/0.4137, allocations: 173.2 kB / 0.7761 GB, free: 9.109 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002959/0.414, allocations: 301.7 kB / 0.7764 GB, free: 8.793 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.414, allocations: 0 / 0.7764 GB, free: 8.793 MB / 0.545 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0004886/0.4145, allocations: 333 kB / 0.7767 GB, free: 8.461 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.449e-05/0.4145, allocations: 7.938 kB / 0.7767 GB, free: 8.453 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.376e-06/0.4146, allocations: 7.984 kB / 0.7767 GB, free: 8.445 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.22e-05/0.4146, allocations: 0 / 0.7767 GB, free: 8.445 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.776e-06/0.4146, allocations: 4 kB / 0.7767 GB, free: 8.441 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.219e-06/0.4146, allocations: 0 / 0.7767 GB, free: 8.441 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001428/0.4147, allocations: 47.73 kB / 0.7768 GB, free: 8.395 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.768e-06/0.4148, allocations: 8 kB / 0.7768 GB, free: 8.387 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 7 (cab[1].material,cab[2].material,cab[3].material,cab[4].material,cab[5].material,cab[6].material,cab[7].material) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 7 * 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 0.0002176/0.415, allocations: 243.4 kB / 0.777 GB, free: 8.141 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.06e-05/0.4151, allocations: 132.7 kB / 0.7772 GB, free: 8.004 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.355e-05/0.4151, allocations: 115 kB / 0.7773 GB, free: 7.887 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6e-05/0.4152, allocations: 184.1 kB / 0.7774 GB, free: 7.699 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.85e-05/0.4152, allocations: 184.3 kB / 0.7776 GB, free: 7.512 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.012e-05/0.4153, allocations: 180.3 kB / 0.7778 GB, free: 7.328 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002685/0.4156, allocations: 477.1 kB / 0.7782 GB, free: 6.805 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.764e-05/0.4156, allocations: 105 kB / 0.7783 GB, free: 6.695 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.07e-05/0.4157, allocations: 108.9 kB / 0.7785 GB, free: 6.582 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.973e-05/0.4157, allocations: 184.2 kB / 0.7786 GB, free: 6.395 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.987e-05/0.4158, allocations: 180.3 kB / 0.7788 GB, free: 6.211 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.973e-05/0.4159, allocations: 184.2 kB / 0.779 GB, free: 6.023 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.861e-05/0.4159, allocations: 176.3 kB / 0.7791 GB, free: 5.844 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001515/0.4161, allocations: 327.9 kB / 0.7795 GB, free: 5.5 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 9.958e-05/0.4162, allocations: 209.8 kB / 0.7797 GB, free: 5.27 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.17e-05/0.4163, allocations: 192.2 kB / 0.7798 GB, free: 5.074 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000128/0.4164, allocations: 105 kB / 0.7799 GB, free: 4.965 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.188e-05/0.4165, allocations: 180.2 kB / 0.7801 GB, free: 4.781 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.995e-05/0.4165, allocations: 101 kB / 0.7802 GB, free: 4.676 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0002557/0.4168, allocations: 279.1 kB / 0.7805 GB, free: 4.402 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.41e-07/0.4168, allocations: 4 kB / 0.7805 GB, free: 4.398 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0003716/0.4171, allocations: 83.92 kB / 0.7806 GB, free: 4.316 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (0): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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.000625/0.4178, allocations: 0.9594 MB / 0.7815 GB, free: 3.332 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.000211/0.418, allocations: 167.9 kB / 0.7817 GB, free: 3.168 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.418, allocations: 0 / 0.7817 GB, free: 3.168 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 1.894e-06/0.418, allocations: 3.938 kB / 0.7817 GB, free: 3.164 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003909/0.4184, allocations: 463.4 kB / 0.7821 GB, free: 2.707 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002706/0.4211, allocations: 2.938 MB / 0.785 GB, free: 15.64 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003129/0.4215, allocations: 0.7821 MB / 0.7857 GB, free: 14.84 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 1.431e-05/0.4215, allocations: 4 kB / 0.7857 GB, free: 14.83 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.268e-05/0.4216, allocations: 51.42 kB / 0.7858 GB, free: 14.78 MB / 0.5606 GB Notification: Performance of SimCode: time 4.31e-07/0.4216, allocations: 0 / 0.7858 GB, free: 14.78 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02138/0.4429, allocations: 6.456 MB / 0.7921 GB, free: 8.484 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.726/8.169, allocations: 15.48 kB / 0.7921 GB, free: 8.469 MB / 0.5606 GB (rm -f BuildingSystems_BuildingSystems.Electrical.Transmission.Functions.Validation.SelectCable_med.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.Transmission.Functions.Validation.SelectCable_med.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.Transmission.Functions.Validation.SelectCable_med.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.Transmission.Functions.Validation.SelectCable_med.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Electrical.Transmission.Functions.Validation.SelectCable_med_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 BuildingSystems_BuildingSystems_Electrical_Transmission_Functions_Validation_SelectCable_med.fmu > BuildingSystems_BuildingSystems.Electrical.Transmission.Functions.Validation.SelectCable_med.pipe 2>&1)