Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N.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 11.1.0-master/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.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(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLineMatrix_RL_N",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLineMatrix_RL_N",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.004894/0.004894, allocations: 100.5 kB / 15.73 MB, free: 6.02 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.001107/0.001107, allocations: 189.6 kB / 16.67 MB, free: 5.938 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.258/1.258, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.514/2.514, allocations: 469.4 MB / 0.7422 GB, free: 3.5 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.002003/0.002003, allocations: 59.91 kB / 1.064 GB, free: 14.27 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7184/0.7204, allocations: 159.1 MB / 1.22 GB, free: 2.262 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N): time 0.02318/0.7436, allocations: 23.43 MB / 1.243 GB, free: 10.75 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.01075/0.7544, allocations: 6.48 MB / 1.249 GB, free: 4.25 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001928/0.7563, allocations: 99.5 kB / 1.249 GB, free: 4.152 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.003897/0.7603, allocations: 1.496 MB / 1.251 GB, free: 2.652 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.004438/0.7647, allocations: 1.937 MB / 1.252 GB, free: 0.707 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.003367/0.7681, allocations: 1.463 MB / 1.254 GB, free: 15.24 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.007067/0.7752, allocations: 6.923 MB / 1.261 GB, free: 8.301 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00869/0.7839, allocations: 6.944 MB / 1.267 GB, free: 1.266 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004065/0.788, allocations: 2.886 MB / 1.27 GB, free: 14.37 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004597/0.7926, allocations: 3.466 MB / 1.274 GB, free: 10.89 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.001233/0.7939, allocations: 0.5273 MB / 1.274 GB, free: 10.37 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002647/0.7966, allocations: 1.182 MB / 1.275 GB, free: 9.184 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.002824/0.7994, allocations: 2.46 MB / 1.278 GB, free: 6.719 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.003856/0.8033, allocations: 2.528 MB / 1.28 GB, free: 4.18 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.008695/0.812, allocations: 8.542 MB / 1.288 GB, free: 11.61 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.812, allocations: 0 / 1.288 GB, free: 11.61 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.583e-06/0.812, allocations: 0 / 1.288 GB, free: 11.61 MB / 1.014 GB Notification: Performance of Transformations before backend: time 0.0001995/0.8122, allocations: 4 kB / 1.288 GB, free: 11.61 MB / 1.014 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1053 * Number of variables: 1053 Notification: Performance of Generate backend data structure: time 0.008791/0.821, allocations: 4.543 MB / 1.293 GB, free: 6.988 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 3.915e-05/0.8211, allocations: 8.625 kB / 1.293 GB, free: 6.98 MB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008726/0.822, allocations: 0.5714 MB / 1.293 GB, free: 6.398 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008232/0.8302, allocations: 1.707 MB / 1.295 GB, free: 4.688 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005853/0.8361, allocations: 2.713 MB / 1.298 GB, free: 1.922 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002273/0.8363, allocations: 283.7 kB / 1.298 GB, free: 1.645 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001223/0.8376, allocations: 356.3 kB / 1.298 GB, free: 1.297 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.012/0.8496, allocations: 7.487 MB / 1.306 GB, free: 9.543 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.262e-05/0.8497, allocations: 11.88 kB / 1.306 GB, free: 9.531 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004264/0.8502, allocations: 159.9 kB / 1.306 GB, free: 9.375 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005182/0.8507, allocations: 487.3 kB / 1.306 GB, free: 8.898 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008512/0.8592, allocations: 5.701 MB / 1.312 GB, free: 3.191 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03088/0.8901, allocations: 31.55 MB / 1.343 GB, free: 0.8789 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002865/0.893, allocations: 2.083 MB / 1.345 GB, free: 14.79 MB / 1.076 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002904/0.8959, allocations: 2.182 MB / 1.347 GB, free: 12.61 MB / 1.076 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001227/0.8961, allocations: 17.31 kB / 1.347 GB, free: 12.59 MB / 1.076 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.248e-05/0.8961, allocations: 51.86 kB / 1.347 GB, free: 12.53 MB / 1.076 GB Notification: Performance of pre-optimization done (n=146): time 3.867e-06/0.8961, allocations: 0 / 1.347 GB, free: 12.53 MB / 1.076 GB Notification: Performance of matching and sorting (n=251): time 0.3323/1.228, allocations: 77.08 MB / 1.422 GB, free: 15.3 MB / 1.154 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.172e-05/1.229, allocations: 77.41 kB / 1.422 GB, free: 15.21 MB / 1.154 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002458/1.231, allocations: 1.674 MB / 1.424 GB, free: 13.5 MB / 1.154 GB Notification: Performance of collectPreVariables (initialization): time 0.0004631/1.231, allocations: 65.7 kB / 1.424 GB, free: 13.43 MB / 1.154 GB Notification: Performance of collectInitialEqns (initialization): time 0.001164/1.233, allocations: 1.799 MB / 1.426 GB, free: 11.61 MB / 1.154 GB Notification: Performance of collectInitialBindings (initialization): time 0.001056/1.234, allocations: 0.8907 MB / 1.427 GB, free: 10.71 MB / 1.154 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001193/1.235, allocations: 485.3 kB / 1.427 GB, free: 10.23 MB / 1.154 GB Notification: Performance of setup shared object (initialization): time 0.0001002/1.235, allocations: 313.1 kB / 1.427 GB, free: 9.922 MB / 1.154 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003832/1.239, allocations: 2.726 MB / 1.43 GB, free: 7.191 MB / 1.154 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004253/1.243, allocations: 3.332 MB / 1.433 GB, free: 3.617 MB / 1.154 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008435/1.252, allocations: 6.401 MB / 1.44 GB, free: 12.97 MB / 1.17 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.656e-05/1.252, allocations: 4 kB / 1.44 GB, free: 12.97 MB / 1.17 GB Notification: Performance of matching and sorting (n=331) (initialization): time 0.03295/1.285, allocations: 14.69 MB / 1.454 GB, free: 14.23 MB / 1.186 GB Notification: Performance of prepare postOptimizeDAE: time 3.974e-05/1.285, allocations: 12 kB / 1.454 GB, free: 14.22 MB / 1.186 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.867e-05/1.285, allocations: 16 kB / 1.454 GB, free: 14.2 MB / 1.186 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02996/1.315, allocations: 9.242 MB / 1.463 GB, free: 4.93 MB / 1.186 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001259/1.316, allocations: 299.5 kB / 1.463 GB, free: 4.637 MB / 1.186 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.08212/1.398, allocations: 52.41 MB / 1.514 GB, free: 15.35 MB / 1.248 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002916/1.401, allocations: 227.7 kB / 1.515 GB, free: 15.13 MB / 1.248 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004511/1.402, allocations: 100 kB / 1.515 GB, free: 15.03 MB / 1.248 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 78 * 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 (157): * Single equations (assignments): 151 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 6 systems {(19,19,64.8%), (19,19,60.9%), (12,18,50.0%), (12,18,50.0%), (12,10,52.8%), (12,10,52.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002723/1.404, allocations: 1.578 MB / 1.516 GB, free: 13.44 MB / 1.248 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006984/1.405, allocations: 262.5 kB / 1.517 GB, free: 13.18 MB / 1.248 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0326/1.438, allocations: 14.75 MB / 1.531 GB, free: 14.38 MB / 1.264 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.323e-05/1.438, allocations: 24 kB / 1.531 GB, free: 14.36 MB / 1.264 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001358/1.438, allocations: 48 kB / 1.531 GB, free: 14.31 MB / 1.264 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.413e-05/1.438, allocations: 15.95 kB / 1.531 GB, free: 14.29 MB / 1.264 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04194/1.48, allocations: 20.52 MB / 1.551 GB, free: 9.574 MB / 1.279 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.171e-05/1.48, allocations: 4 kB / 1.551 GB, free: 9.57 MB / 1.279 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008029/1.481, allocations: 159.8 kB / 1.551 GB, free: 9.414 MB / 1.279 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02835/1.509, allocations: 9.014 MB / 1.56 GB, free: 384 kB / 1.279 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004073/1.509, allocations: 48 kB / 1.56 GB, free: 336 kB / 1.279 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.6518/2.161, allocations: 51.95 MB / 1.611 GB, free: 296.4 MB / 1.279 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.073e-06/2.161, allocations: 11.94 kB / 1.611 GB, free: 296.4 MB / 1.279 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02702/2.188, allocations: 14.38 MB / 1.625 GB, free: 283.2 MB / 1.279 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002331/2.191, allocations: 0.8605 MB / 1.626 GB, free: 282.3 MB / 1.279 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008237/2.192, allocations: 51.94 kB / 1.626 GB, free: 282.2 MB / 1.279 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002501/2.194, allocations: 207.7 kB / 1.626 GB, free: 282 MB / 1.279 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001294/2.195, allocations: 237.5 kB / 1.626 GB, free: 281.8 MB / 1.279 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002922/2.196, allocations: 64 kB / 1.626 GB, free: 281.7 MB / 1.279 GB Notification: Performance of sorting global known variables: time 0.001468/2.197, allocations: 1.125 MB / 1.627 GB, free: 280.6 MB / 1.279 GB Notification: Performance of sort global known variables: time 2.8e-07/2.197, allocations: 0 / 1.627 GB, free: 280.6 MB / 1.279 GB Notification: Performance of remove unused functions: time 0.004856/2.202, allocations: 1.613 MB / 1.629 GB, free: 279 MB / 1.279 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * 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 (80): * Single equations (assignments): 74 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 6 systems {(12,10,53.5%), (12,18,50.0%), (19,19,64.8%), (12,10,53.5%), (12,18,50.0%), (19,19,54.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.02741/2.229, allocations: 14.99 MB / 1.644 GB, free: 263.8 MB / 1.279 GB Notification: Performance of simCode: created initialization part: time 0.0196/2.249, allocations: 10.57 MB / 1.654 GB, free: 253.2 MB / 1.279 GB Notification: Performance of simCode: created event and clocks part: time 9.117e-06/2.249, allocations: 0 / 1.654 GB, free: 253.2 MB / 1.279 GB Notification: Performance of simCode: created simulation system equations: time 0.01562/2.265, allocations: 7.351 MB / 1.661 GB, free: 245.8 MB / 1.279 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003299/2.268, allocations: 0.5606 MB / 1.662 GB, free: 245.3 MB / 1.279 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08606/2.354, allocations: 50.96 MB / 1.711 GB, free: 193.3 MB / 1.279 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00363/2.358, allocations: 3.224 MB / 1.714 GB, free: 190 MB / 1.279 GB Notification: Performance of simCode: alias equations: time 0.0009551/2.359, allocations: 387.3 kB / 1.715 GB, free: 189.7 MB / 1.279 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001235/2.36, allocations: 1.472 MB / 1.716 GB, free: 188.2 MB / 1.279 GB Notification: Performance of SimCode: time 6.81e-07/2.36, allocations: 0 / 1.716 GB, free: 188.2 MB / 1.279 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.146/2.506, allocations: 120.8 MB / 1.834 GB, free: 67.83 MB / 1.279 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.55/16.06, allocations: 20.64 kB / 1.834 GB, free: 67.82 MB / 1.279 GB (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_latest_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLineMatrix_RL_N.fmu > Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLineMatrix_RL_N.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches