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.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.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(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.001493/0.001493, 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.00159/0.00159, allocations: 196.9 kB / 16.53 MB, free: 6.664 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.255/1.255, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.499/2.499, allocations: 461.9 MB / 0.7346 GB, free: 14.7 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001188/0.001188, allocations: 72.2 kB / 0.8992 GB, free: 37 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2444/0.2456, allocations: 157.4 MB / 1.053 GB, free: 8.246 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N): time 0.02285/0.2685, allocations: 23.42 MB / 1.076 GB, free: 0.75 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.009973/0.2785, allocations: 6.496 MB / 1.082 GB, free: 10.23 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001774/0.2803, allocations: 99.5 kB / 1.082 GB, free: 10.14 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.003622/0.2839, allocations: 1.488 MB / 1.084 GB, free: 8.641 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.00389/0.2879, allocations: 1.832 MB / 1.085 GB, free: 6.801 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.003284/0.2912, allocations: 1.452 MB / 1.087 GB, free: 5.352 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.00626/0.2974, allocations: 6.908 MB / 1.094 GB, free: 14.43 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.007923/0.3054, allocations: 7.008 MB / 1.1 GB, free: 7.324 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003681/0.3091, allocations: 2.835 MB / 1.103 GB, free: 4.48 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00439/0.3135, allocations: 3.474 MB / 1.107 GB, free: 0.9961 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.001126/0.3146, allocations: 0.5273 MB / 1.107 GB, free: 480 kB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002443/0.3171, allocations: 1.174 MB / 1.108 GB, free: 15.29 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 0.002497/0.3196, allocations: 2.46 MB / 1.111 GB, free: 12.83 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.003329/0.3229, allocations: 2.532 MB / 1.113 GB, free: 10.29 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.007021/0.33, allocations: 8.464 MB / 1.121 GB, free: 1.797 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 5.68e-06/0.33, allocations: 0 / 1.121 GB, free: 1.797 MB / 0.8731 GB Notification: Performance of FrontEnd: time 1.333e-06/0.33, allocations: 0 / 1.121 GB, free: 1.797 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 0.0001875/0.3302, allocations: 0 / 1.121 GB, free: 1.797 MB / 0.8731 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.008673/0.3389, allocations: 4.432 MB / 1.126 GB, free: 13.3 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 3.911e-05/0.3389, allocations: 8.625 kB / 1.126 GB, free: 13.29 MB / 0.8887 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009871/0.3399, allocations: 0.5714 MB / 1.126 GB, free: 12.71 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008156/0.3481, allocations: 1.689 MB / 1.128 GB, free: 11.01 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00465/0.3528, allocations: 2.567 MB / 1.13 GB, free: 8.391 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001895/0.353, allocations: 279.7 kB / 1.131 GB, free: 8.117 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008454/0.3538, allocations: 360.2 kB / 1.131 GB, free: 7.766 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009748/0.3636, allocations: 7.494 MB / 1.138 GB, free: 4 kB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.236e-05/0.3637, allocations: 15.97 kB / 1.138 GB, free: 15.98 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003864/0.3641, allocations: 155.9 kB / 1.139 GB, free: 15.83 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004857/0.3646, allocations: 487.3 kB / 1.139 GB, free: 15.36 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007681/0.3723, allocations: 5.701 MB / 1.145 GB, free: 9.648 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0294/0.4017, allocations: 31.71 MB / 1.176 GB, free: 7.164 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002782/0.4045, allocations: 2.088 MB / 1.178 GB, free: 5.07 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00284/0.4074, allocations: 2.178 MB / 1.18 GB, free: 2.883 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001884/0.4076, allocations: 17.31 kB / 1.18 GB, free: 2.863 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.725e-05/0.4076, allocations: 47.88 kB / 1.18 GB, free: 2.809 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=146): time 2.786e-06/0.4076, allocations: 0 / 1.18 GB, free: 2.809 MB / 0.9356 GB Notification: Performance of matching and sorting (n=251): time 0.747/1.155, allocations: 77 MB / 1.255 GB, free: 178.2 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.328e-05/1.155, allocations: 76.34 kB / 1.255 GB, free: 178.1 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002099/1.157, allocations: 1.668 MB / 1.257 GB, free: 177.9 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 0.0003622/1.157, allocations: 64.55 kB / 1.257 GB, free: 177.9 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009657/1.158, allocations: 1.748 MB / 1.258 GB, free: 177.6 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007577/1.159, allocations: 0.8509 MB / 1.259 GB, free: 177 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009039/1.16, allocations: 485.5 kB / 1.26 GB, free: 177 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 5.79e-05/1.16, allocations: 305.8 kB / 1.26 GB, free: 176.7 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003882/1.164, allocations: 2.727 MB / 1.263 GB, free: 176.7 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003886/1.168, allocations: 3.331 MB / 1.266 GB, free: 176 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007554/1.175, allocations: 6.393 MB / 1.272 GB, free: 173.5 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.268e-05/1.175, allocations: 4.531 kB / 1.272 GB, free: 173.5 MB / 0.9981 GB Notification: Performance of matching and sorting (n=331) (initialization): time 0.02863/1.204, allocations: 14.68 MB / 1.287 GB, free: 166.1 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 3.904e-05/1.204, allocations: 15.81 kB / 1.287 GB, free: 166.1 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.093e-05/1.204, allocations: 18.28 kB / 1.287 GB, free: 166.1 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02481/1.229, allocations: 9.29 MB / 1.296 GB, free: 161.2 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001039/1.23, allocations: 309.6 kB / 1.296 GB, free: 161.2 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0618/1.292, allocations: 52.38 MB / 1.347 GB, free: 112 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002536/1.294, allocations: 223.6 kB / 1.347 GB, free: 111.7 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000246/1.295, allocations: 99.98 kB / 1.347 GB, free: 111.6 MB / 0.9981 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.001984/1.297, allocations: 1.582 MB / 1.349 GB, free: 110.1 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004521/1.297, allocations: 241.1 kB / 1.349 GB, free: 109.8 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02617/1.323, allocations: 14.76 MB / 1.364 GB, free: 94.99 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.132e-05/1.323, allocations: 27.94 kB / 1.364 GB, free: 94.96 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.182e-05/1.323, allocations: 45.62 kB / 1.364 GB, free: 94.92 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.554e-05/1.323, allocations: 15.95 kB / 1.364 GB, free: 94.91 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.032/1.355, allocations: 20.51 MB / 1.384 GB, free: 74.25 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.047e-06/1.355, allocations: 4.844 kB / 1.384 GB, free: 74.25 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005866/1.356, allocations: 171 kB / 1.384 GB, free: 74.09 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02336/1.379, allocations: 9.052 MB / 1.393 GB, free: 65.01 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001916/1.38, allocations: 48 kB / 1.393 GB, free: 64.96 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06208/1.442, allocations: 51.96 MB / 1.444 GB, free: 12.16 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.421e-06/1.442, allocations: 11.94 kB / 1.444 GB, free: 12.15 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0269/1.469, allocations: 14.37 MB / 1.458 GB, free: 13.64 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002095/1.471, allocations: 0.8493 MB / 1.458 GB, free: 12.77 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000763/1.472, allocations: 51.94 kB / 1.458 GB, free: 12.72 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002458/1.474, allocations: 211.7 kB / 1.459 GB, free: 12.51 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001403/1.475, allocations: 237.5 kB / 1.459 GB, free: 12.28 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000284/1.476, allocations: 64 kB / 1.459 GB, free: 12.22 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.001796/1.477, allocations: 1.129 MB / 1.46 GB, free: 11.07 MB / 1.014 GB Notification: Performance of sort global known variables: time 1.5e-07/1.478, allocations: 0 / 1.46 GB, free: 11.07 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.004899/1.482, allocations: 1.613 MB / 1.462 GB, free: 9.453 MB / 1.014 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.02983/1.512, allocations: 14.98 MB / 1.476 GB, free: 10.34 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.02274/1.535, allocations: 11.33 MB / 1.487 GB, free: 14.95 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 6.852e-06/1.535, allocations: 0 / 1.487 GB, free: 14.95 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.01667/1.552, allocations: 7.312 MB / 1.494 GB, free: 7.59 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002743/1.554, allocations: 0.5492 MB / 1.495 GB, free: 7.062 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09548/1.65, allocations: 53.37 MB / 1.547 GB, free: 15.51 MB / 1.107 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004371/1.654, allocations: 3.224 MB / 1.55 GB, free: 12.25 MB / 1.107 GB Notification: Performance of simCode: alias equations: time 0.001135/1.656, allocations: 393.1 kB / 1.551 GB, free: 11.86 MB / 1.107 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001691/1.657, allocations: 1.468 MB / 1.552 GB, free: 10.39 MB / 1.107 GB Notification: Performance of SimCode: time 6.51e-07/1.657, allocations: 0 / 1.552 GB, free: 10.39 MB / 1.107 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.892/3.549, allocations: 119.4 MB / 1.669 GB, free: 3.453 MB / 1.217 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.17/17.72, allocations: 4.375 kB / 1.669 GB, free: 3.449 MB / 1.217 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLineMatrix_RL_N_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 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.mat","/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