Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.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.ThreePhasesBalanced.Lines.Examples.ACLineMedium,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLineMedium",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLineMedium",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.001679/0.001679, 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.001894/0.001894, allocations: 194.7 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.371/1.371, allocations: 222.9 MB / 240.2 MB, free: 4.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.444/2.444, allocations: 461.9 MB / 0.7346 GB, free: 14.74 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001281/0.001281, allocations: 65.08 kB / 0.8992 GB, free: 37 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.231/0.2323, allocations: 157.4 MB / 1.053 GB, free: 8.285 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium): time 0.01486/0.2472, allocations: 14.8 MB / 1.067 GB, free: 9.434 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.01717/0.2644, allocations: 10.36 MB / 1.077 GB, free: 15.05 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002015/0.2664, allocations: 59.62 kB / 1.078 GB, free: 14.99 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.007876/0.2744, allocations: 1.688 MB / 1.079 GB, free: 13.29 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.008612/0.283, allocations: 1.818 MB / 1.081 GB, free: 11.48 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.003013/0.2861, allocations: 0.7523 MB / 1.082 GB, free: 10.72 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.005056/0.2911, allocations: 2.742 MB / 1.084 GB, free: 7.977 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002933/0.2941, allocations: 1.419 MB / 1.086 GB, free: 6.527 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00353/0.2976, allocations: 1.504 MB / 1.087 GB, free: 5.02 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002863/0.3005, allocations: 1.16 MB / 1.088 GB, free: 3.855 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 0.0006273/0.3012, allocations: 160 kB / 1.088 GB, free: 3.699 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002762/0.304, allocations: 0.7877 MB / 1.089 GB, free: 2.91 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.001056/0.305, allocations: 0.6037 MB / 1.09 GB, free: 2.305 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.001914/0.307, allocations: 0.9561 MB / 1.091 GB, free: 1.344 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.004811/0.3118, allocations: 2.73 MB / 1.093 GB, free: 14.61 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.23e-06/0.3118, allocations: 0 / 1.093 GB, free: 14.61 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.763e-06/0.3118, allocations: 0 / 1.093 GB, free: 14.61 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.922e-05/0.3119, allocations: 0 / 1.093 GB, free: 14.61 MB / 0.8575 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 327 * Number of variables: 327 Notification: Performance of Generate backend data structure: time 0.004306/0.3162, allocations: 2.174 MB / 1.096 GB, free: 12.38 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.677e-05/0.3163, allocations: 20.56 kB / 1.096 GB, free: 12.36 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002985/0.3166, allocations: 198.4 kB / 1.096 GB, free: 12.15 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01121/0.3278, allocations: 2.108 MB / 1.098 GB, free: 10.04 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002418/0.3303, allocations: 1.202 MB / 1.099 GB, free: 8.781 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.726e-05/0.3304, allocations: 90.67 kB / 1.099 GB, free: 8.691 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003789/0.3308, allocations: 123.9 kB / 1.099 GB, free: 8.57 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006209/0.337, allocations: 2.67 MB / 1.102 GB, free: 5.75 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.636e-05/0.3371, allocations: 15.83 kB / 1.102 GB, free: 5.734 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002127/0.3373, allocations: 51.98 kB / 1.102 GB, free: 5.684 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006783/0.338, allocations: 190.1 kB / 1.102 GB, free: 5.496 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007616/0.3456, allocations: 2.791 MB / 1.105 GB, free: 2.695 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01372/0.3593, allocations: 10.51 MB / 1.115 GB, free: 7.602 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006342/0.3657, allocations: 2.34 MB / 1.117 GB, free: 5.234 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002913/0.3686, allocations: 1.273 MB / 1.119 GB, free: 3.961 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 5.89e-05/0.3687, allocations: 13 kB / 1.119 GB, free: 3.945 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.972e-05/0.3688, allocations: 39.56 kB / 1.119 GB, free: 3.898 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=89): time 2.385e-06/0.3688, allocations: 0 / 1.119 GB, free: 3.898 MB / 0.8731 GB Notification: Performance of matching and sorting (n=153): time 0.05815/0.4269, allocations: 16.48 MB / 1.135 GB, free: 3.262 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.401e-05/0.427, allocations: 68.72 kB / 1.135 GB, free: 3.18 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001431/0.4284, allocations: 1.172 MB / 1.136 GB, free: 1.996 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 0.0001418/0.4286, allocations: 57.64 kB / 1.136 GB, free: 1.934 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004849/0.4291, allocations: 0.7398 MB / 1.137 GB, free: 1.188 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004526/0.4295, allocations: 0.5159 MB / 1.137 GB, free: 0.6641 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005367/0.4301, allocations: 291.5 kB / 1.137 GB, free: 384 kB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 8.106e-05/0.4302, allocations: 305.1 kB / 1.138 GB, free: 76 kB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003385/0.4336, allocations: 1.51 MB / 1.139 GB, free: 14.56 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00351/0.4371, allocations: 1.78 MB / 1.141 GB, free: 12.68 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006918/0.444, allocations: 3.369 MB / 1.144 GB, free: 9.219 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.5e-06/0.444, allocations: 4 kB / 1.144 GB, free: 9.215 MB / 0.9044 GB Notification: Performance of matching and sorting (n=190) (initialization): time 0.01272/0.4568, allocations: 5.28 MB / 1.149 GB, free: 3.895 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 2.198e-05/0.4568, allocations: 8 kB / 1.149 GB, free: 3.887 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.187e-05/0.4568, allocations: 4 kB / 1.149 GB, free: 3.883 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006513/0.4633, allocations: 1.893 MB / 1.151 GB, free: 1.969 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001838/0.4652, allocations: 415.3 kB / 1.152 GB, free: 1.562 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02681/0.492, allocations: 24.15 MB / 1.175 GB, free: 8.293 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002635/0.4947, allocations: 303.5 kB / 1.176 GB, free: 7.996 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000241/0.495, allocations: 79.95 kB / 1.176 GB, free: 7.918 MB / 0.9356 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * 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 (82): * 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: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 8 systems {(2,8,100.0%), (2,8,100.0%), (3,17,100.0%), (3,17,100.0%), (2,16,100.0%), (2,16,100.0%), (2,8,100.0%), (2,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001006/0.496, allocations: 455 kB / 1.176 GB, free: 7.465 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005116/0.4965, allocations: 173.9 kB / 1.176 GB, free: 7.293 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01282/0.5093, allocations: 5.324 MB / 1.181 GB, free: 1.922 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.69e-05/0.5094, allocations: 19.94 kB / 1.181 GB, free: 1.902 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.395e-05/0.5094, allocations: 20 kB / 1.181 GB, free: 1.883 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.791e-05/0.5094, allocations: 11.97 kB / 1.182 GB, free: 1.871 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01586/0.5253, allocations: 7.434 MB / 1.189 GB, free: 10.31 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.794e-06/0.5253, allocations: 4.469 kB / 1.189 GB, free: 10.3 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001594/0.5269, allocations: 351.4 kB / 1.189 GB, free: 9.961 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005607/0.5326, allocations: 1.722 MB / 1.191 GB, free: 8.219 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001233/0.5327, allocations: 47.91 kB / 1.191 GB, free: 8.172 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02502/0.5577, allocations: 23.32 MB / 1.214 GB, free: 15.74 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.48e-06/0.5577, allocations: 4 kB / 1.214 GB, free: 15.74 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01181/0.5696, allocations: 4.893 MB / 1.218 GB, free: 10.77 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001185/0.5708, allocations: 498.7 kB / 1.219 GB, free: 10.26 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004492/0.5713, allocations: 28 kB / 1.219 GB, free: 10.23 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002452/0.5737, allocations: 319.5 kB / 1.219 GB, free: 9.918 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000575/0.5743, allocations: 149 kB / 1.219 GB, free: 9.77 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001577/0.5745, allocations: 55.97 kB / 1.219 GB, free: 9.715 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.001193/0.5757, allocations: 0.7938 MB / 1.22 GB, free: 8.922 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.1e-07/0.5757, allocations: 0 / 1.22 GB, free: 8.922 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.002151/0.5779, allocations: 0.6562 MB / 1.221 GB, free: 8.266 MB / 0.9825 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * 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 (46): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 8 systems {(2,8,100.0%), (3,15,100.0%), (2,8,100.0%), (3,17,100.0%), (2,8,100.0%), (3,15,100.0%), (2,8,100.0%), (3,17,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01264/0.5905, allocations: 5.474 MB / 1.226 GB, free: 2.699 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.01172/0.6023, allocations: 5.428 MB / 1.231 GB, free: 13.16 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 9.187e-06/0.6023, allocations: 0 / 1.231 GB, free: 13.16 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.006808/0.6091, allocations: 3.363 MB / 1.235 GB, free: 9.699 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002663/0.6118, allocations: 0.5581 MB / 1.235 GB, free: 9.16 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04546/0.6573, allocations: 22.96 MB / 1.258 GB, free: 1.324 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.3774/1.035, allocations: 1.561 MB / 1.259 GB, free: 192.2 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 0.001553/1.036, allocations: 388.5 kB / 1.26 GB, free: 192.2 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007167/1.037, allocations: 0.6585 MB / 1.26 GB, free: 192.2 MB / 1.014 GB Notification: Performance of SimCode: time 5.41e-07/1.037, allocations: 0 / 1.26 GB, free: 192.2 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.839/3.876, allocations: 58.33 MB / 1.317 GB, free: 168.2 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.58/14.45, allocations: 19.39 kB / 1.317 GB, free: 168.2 MB / 1.014 GB (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLineMedium_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLineMedium.fmu > Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLineMedium.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches