Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.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/Buildings 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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(Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med,fileNamePrefix="Buildings_9_Buildings_Electrical_Transmission_Functions_Validation_SelectCable_med",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med,fileNamePrefix="Buildings_9_Buildings_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.001521/0.001521, allocations: 108 kB / 15.6 MB, free: 132 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.00179/0.00179, allocations: 198.8 kB / 16.53 MB, free: 6.391 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.341/1.341, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.38/2.38, allocations: 390.2 MB / 0.6647 GB, free: 256 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.002373/0.002373, allocations: 59.91 kB / 0.8127 GB, free: 14.14 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6166/0.619, allocations: 140.4 MB / 0.9497 GB, free: 9.152 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med): time 0.002181/0.6212, allocations: 1.414 MB / 0.9511 GB, free: 8.031 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.002492/0.6238, allocations: 2.667 MB / 0.9537 GB, free: 5.898 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.957e-05/0.6238, allocations: 0 / 0.9537 GB, free: 5.898 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.001361/0.6252, allocations: 0.5772 MB / 0.9543 GB, free: 5.488 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.431e-05/0.6252, allocations: 19.91 kB / 0.9543 GB, free: 5.473 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 4.178e-06/0.6252, allocations: 1.188 kB / 0.9543 GB, free: 5.473 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002056/0.6255, allocations: 155.8 kB / 0.9544 GB, free: 5.391 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 6.325e-05/0.6255, allocations: 37.45 kB / 0.9545 GB, free: 5.371 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 6.424e-05/0.6256, allocations: 65.17 kB / 0.9545 GB, free: 5.344 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001129/0.6257, allocations: 73.41 kB / 0.9546 GB, free: 5.309 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.469e-05/0.6257, allocations: 2.281 kB / 0.9546 GB, free: 5.309 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001012/0.6267, allocations: 474.2 kB / 0.9551 GB, free: 5.148 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 5.676e-05/0.6268, allocations: 30.88 kB / 0.9551 GB, free: 5.129 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 8.699e-05/0.6269, allocations: 97.7 kB / 0.9552 GB, free: 5.074 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0005549/0.6275, allocations: 432.2 kB / 0.9556 GB, free: 4.828 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.087e-06/0.6275, allocations: 1.375 kB / 0.9556 GB, free: 4.828 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.423e-06/0.6275, allocations: 0 / 0.9556 GB, free: 4.828 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.27e-06/0.6275, allocations: 0 / 0.9556 GB, free: 4.828 MB / 0.7169 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.0006438/0.6282, allocations: 0.5579 MB / 0.9561 GB, free: 4.309 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.647e-05/0.6282, allocations: 9.969 kB / 0.9562 GB, free: 4.309 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.589e-05/0.6282, allocations: 106 kB / 0.9563 GB, free: 4.195 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001441/0.6284, allocations: 103.4 kB / 0.9564 GB, free: 4.105 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001655/0.6285, allocations: 306.3 kB / 0.9566 GB, free: 3.797 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.239e-05/0.6286, allocations: 156.1 kB / 0.9568 GB, free: 3.645 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.607e-05/0.6286, allocations: 156.2 kB / 0.9569 GB, free: 3.492 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 3.696e-05/0.6287, allocations: 106.8 kB / 0.957 GB, free: 3.383 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.472e-05/0.6287, allocations: 79.22 kB / 0.9571 GB, free: 3.305 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.719e-05/0.6287, allocations: 151.8 kB / 0.9573 GB, free: 3.156 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.45e-05/0.6287, allocations: 150.6 kB / 0.9574 GB, free: 3.008 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.049e-05/0.6288, allocations: 155.9 kB / 0.9576 GB, free: 2.855 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002479/0.629, allocations: 0.5303 MB / 0.9581 GB, free: 2.312 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 4.175e-05/0.6291, allocations: 174.2 kB / 0.9582 GB, free: 2.133 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.474e-05/0.6291, allocations: 84.19 kB / 0.9583 GB, free: 2.047 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 9.027e-06/0.6291, allocations: 76.47 kB / 0.9584 GB, free: 1.973 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.645e-05/0.6291, allocations: 109.8 kB / 0.9585 GB, free: 1.855 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=0): time 8.62e-07/0.6291, allocations: 1 kB / 0.9585 GB, free: 1.855 MB / 0.7169 GB Notification: Performance of matching and sorting (n=0): time 0.0001624/0.6293, allocations: 61.56 kB / 0.9586 GB, free: 1.801 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.378e-05/0.6293, allocations: 130.6 kB / 0.9587 GB, free: 1.66 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000369/0.6297, allocations: 435.6 kB / 0.9591 GB, free: 1.383 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 8.426e-06/0.6297, allocations: 26.83 kB / 0.9591 GB, free: 1.352 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 5.171e-05/0.6298, allocations: 130.5 kB / 0.9592 GB, free: 1.23 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.374e-06/0.6298, allocations: 4 kB / 0.9593 GB, free: 1.227 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.595e-05/0.6299, allocations: 91.78 kB / 0.9593 GB, free: 1.172 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.315e-05/0.6299, allocations: 339.3 kB / 0.9597 GB, free: 0.8398 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001045/0.63, allocations: 94.84 kB / 0.9598 GB, free: 0.793 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001232/0.6302, allocations: 163.7 kB / 0.9599 GB, free: 0.668 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002495/0.6304, allocations: 313.7 kB / 0.9602 GB, free: 484 kB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.6304, allocations: 0 / 0.9602 GB, free: 484 kB / 0.7169 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0004736/0.6309, allocations: 332.4 kB / 0.9605 GB, free: 300 kB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.655e-05/0.6309, allocations: 10.72 kB / 0.9605 GB, free: 296 kB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.763e-06/0.631, allocations: 1.219 kB / 0.9605 GB, free: 296 kB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.428e-05/0.631, allocations: 3.156 kB / 0.9605 GB, free: 296 kB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.294e-06/0.631, allocations: 5.094 kB / 0.9605 GB, free: 292 kB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.565e-06/0.631, allocations: 6.531 kB / 0.9606 GB, free: 288 kB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001541/0.6312, allocations: 48.11 kB / 0.9606 GB, free: 248 kB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.928e-06/0.6312, allocations: 8.359 kB / 0.9606 GB, free: 244 kB / 0.7169 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.0001662/0.6313, allocations: 244.8 kB / 0.9608 GB, free: 24 kB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.361e-05/0.6314, allocations: 131.6 kB / 0.961 GB, free: 15.89 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.967e-05/0.6315, allocations: 118 kB / 0.9611 GB, free: 15.77 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.595e-05/0.6316, allocations: 189.1 kB / 0.9613 GB, free: 15.58 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.719e-05/0.6316, allocations: 181 kB / 0.9614 GB, free: 15.39 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.064e-05/0.6317, allocations: 177.8 kB / 0.9616 GB, free: 15.21 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000283/0.632, allocations: 476.8 kB / 0.9621 GB, free: 14.73 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.916e-05/0.632, allocations: 102 kB / 0.9622 GB, free: 14.62 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.137e-05/0.6321, allocations: 102 kB / 0.9622 GB, free: 14.52 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.32e-05/0.6321, allocations: 189.3 kB / 0.9624 GB, free: 14.32 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.702e-05/0.6322, allocations: 181.1 kB / 0.9626 GB, free: 14.14 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.208e-05/0.6322, allocations: 181 kB / 0.9628 GB, free: 13.96 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.991e-05/0.6323, allocations: 177.4 kB / 0.9629 GB, free: 13.78 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001455/0.6324, allocations: 333.9 kB / 0.9633 GB, free: 13.44 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 9.715e-05/0.6325, allocations: 201 kB / 0.9635 GB, free: 13.22 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.821e-05/0.6326, allocations: 185.6 kB / 0.9636 GB, free: 13.04 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001333/0.6328, allocations: 110.1 kB / 0.9637 GB, free: 12.92 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.072e-05/0.6329, allocations: 181.1 kB / 0.9639 GB, free: 12.74 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.062e-05/0.6329, allocations: 105.9 kB / 0.964 GB, free: 12.63 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0002758/0.6332, allocations: 280.9 kB / 0.9643 GB, free: 12.46 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6332, allocations: 0 / 0.9643 GB, free: 12.46 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0004333/0.6336, allocations: 80.91 kB / 0.9644 GB, free: 12.45 MB / 0.7325 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.0006214/0.6342, allocations: 0.9592 MB / 0.9653 GB, free: 11.55 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0002434/0.6345, allocations: 172.6 kB / 0.9655 GB, free: 11.45 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.003e-06/0.6345, allocations: 0 / 0.9655 GB, free: 11.45 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 1.372e-06/0.6345, allocations: 0 / 0.9655 GB, free: 11.45 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003865/0.6349, allocations: 463.3 kB / 0.9659 GB, free: 11 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002807/0.6377, allocations: 2.916 MB / 0.9687 GB, free: 8.863 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003526/0.6381, allocations: 0.7772 MB / 0.9695 GB, free: 8.117 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 1.683e-05/0.6381, allocations: 6.297 kB / 0.9695 GB, free: 8.113 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.805e-05/0.6382, allocations: 53.8 kB / 0.9696 GB, free: 8.062 MB / 0.7325 GB Notification: Performance of SimCode: time 5.31e-07/0.6382, allocations: 0 / 0.9696 GB, free: 8.062 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02823/0.6665, allocations: 6.39 MB / 0.9758 GB, free: 4.898 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.517/8.183, allocations: 5.531 kB / 0.9758 GB, free: 4.895 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med.pipe ; mkfifo Buildings_9_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med.pipe >> ../files/Buildings_9_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.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 Buildings_9_Buildings_Electrical_Transmission_Functions_Validation_SelectCable_med.fmu > Buildings_9_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_Transmission_Functions_Validation_SelectCable_med.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.Transmission.Functions.Validation.SelectCable_med.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches