Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC_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 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.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC_N,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLineMatrix_RLC_N",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC_N,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLineMatrix_RLC_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.001507/0.001507, 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.001741/0.001741, allocations: 192.7 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.306/1.306, allocations: 222.9 MB / 240.2 MB, free: 4.422 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.341/2.341, allocations: 390.3 MB / 0.6647 GB, free: 460 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001394/0.001394, allocations: 67.89 kB / 0.8127 GB, free: 14.36 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.686/0.6874, allocations: 140.4 MB / 0.9497 GB, free: 9.145 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC_N): time 0.01073/0.6982, allocations: 10.09 MB / 0.9596 GB, free: 1.316 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.004988/0.7032, allocations: 3.168 MB / 0.9627 GB, free: 14.81 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004316/0.7037, allocations: 33.41 kB / 0.9627 GB, free: 14.8 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.001433/0.7051, allocations: 0.6005 MB / 0.9633 GB, free: 14.32 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.001194/0.7063, allocations: 0.7333 MB / 0.964 GB, free: 13.74 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.001292/0.7076, allocations: 0.7449 MB / 0.9647 GB, free: 13.17 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.002616/0.7103, allocations: 3 MB / 0.9677 GB, free: 11.52 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002604/0.7129, allocations: 2.611 MB / 0.9702 GB, free: 10.3 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00157/0.7145, allocations: 1.244 MB / 0.9714 GB, free: 9.609 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001729/0.7162, allocations: 1.564 MB / 0.973 GB, free: 8.691 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 0.000323/0.7165, allocations: 235.7 kB / 0.9732 GB, free: 8.691 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009204/0.7175, allocations: 0.4958 MB / 0.9737 GB, free: 8.551 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.0009005/0.7184, allocations: 1.074 MB / 0.9747 GB, free: 7.887 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.00123/0.7196, allocations: 1.119 MB / 0.9758 GB, free: 7.055 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.003245/0.7229, allocations: 3.658 MB / 0.9794 GB, free: 3.383 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 6.061e-06/0.7229, allocations: 0 / 0.9794 GB, free: 3.383 MB / 0.7325 GB Notification: Performance of FrontEnd: time 2.885e-06/0.7229, allocations: 0 / 0.9794 GB, free: 3.383 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 4.752e-05/0.723, allocations: 0 / 0.9794 GB, free: 3.383 MB / 0.7325 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 439 * Number of variables: 439 Notification: Performance of Generate backend data structure: time 0.003956/0.7269, allocations: 2.146 MB / 0.9815 GB, free: 1.18 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.69e-05/0.727, allocations: 8.031 kB / 0.9815 GB, free: 1.172 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003044/0.7273, allocations: 265.2 kB / 0.9817 GB, free: 0.9023 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009086/0.7364, allocations: 1.313 MB / 0.983 GB, free: 15.59 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002696/0.7391, allocations: 1.259 MB / 0.9843 GB, free: 14.28 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001062/0.7392, allocations: 115.4 kB / 0.9844 GB, free: 14.17 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003378/0.7396, allocations: 148.3 kB / 0.9845 GB, free: 14.02 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005135/0.7447, allocations: 3.437 MB / 0.9879 GB, free: 10.49 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.52e-05/0.7448, allocations: 3.938 kB / 0.9879 GB, free: 10.48 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002024/0.745, allocations: 63.97 kB / 0.9879 GB, free: 10.42 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002683/0.7453, allocations: 203.1 kB / 0.9881 GB, free: 10.22 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00475/0.75, allocations: 3.131 MB / 0.9912 GB, free: 7.086 MB / 0.7481 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02186/0.7719, allocations: 13.62 MB / 1.004 GB, free: 8.586 MB / 0.7637 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002785/0.7747, allocations: 1.728 MB / 1.006 GB, free: 6.852 MB / 0.7637 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001998/0.7768, allocations: 1.44 MB / 1.008 GB, free: 5.406 MB / 0.7637 GB Notification: Performance of preOpt evalFunc (simulation): time 9.113e-05/0.7769, allocations: 9 kB / 1.008 GB, free: 5.398 MB / 0.7637 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.719e-05/0.7769, allocations: 47.56 kB / 1.008 GB, free: 5.344 MB / 0.7637 GB Notification: Performance of pre-optimization done (n=104): time 2.925e-06/0.7769, allocations: 4 kB / 1.008 GB, free: 5.34 MB / 0.7637 GB Notification: Performance of matching and sorting (n=183): time 0.1531/0.9301, allocations: 36.67 MB / 1.043 GB, free: 0.5234 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.315e-05/0.9302, allocations: 69.41 kB / 1.044 GB, free: 456 kB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001557/0.9317, allocations: 1.054 MB / 1.045 GB, free: 15.37 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 0.0001688/0.9319, allocations: 53.7 kB / 1.045 GB, free: 15.31 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005816/0.9325, allocations: 0.7951 MB / 1.045 GB, free: 14.5 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006174/0.9331, allocations: 0.6161 MB / 1.046 GB, free: 13.88 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007966/0.9339, allocations: 367.3 kB / 1.046 GB, free: 13.51 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001042/0.934, allocations: 301.1 kB / 1.047 GB, free: 13.21 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00281/0.9369, allocations: 1.928 MB / 1.048 GB, free: 11.28 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003311/0.9402, allocations: 2.285 MB / 1.051 GB, free: 8.871 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006067/0.9463, allocations: 4.39 MB / 1.055 GB, free: 4.359 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.413e-05/0.9463, allocations: 8 kB / 1.055 GB, free: 4.352 MB / 0.8106 GB Notification: Performance of matching and sorting (n=241) (initialization): time 0.02049/0.9668, allocations: 9.026 MB / 1.064 GB, free: 11.3 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 3.702e-05/0.9669, allocations: 12 kB / 1.064 GB, free: 11.29 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.345e-05/0.9669, allocations: 8 kB / 1.064 GB, free: 11.28 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01763/0.9845, allocations: 5.005 MB / 1.069 GB, free: 6.258 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008659/0.9854, allocations: 187.6 kB / 1.069 GB, free: 6.074 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06029/1.046, allocations: 38.93 MB / 1.107 GB, free: 14.57 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00195/1.048, allocations: 99.89 kB / 1.107 GB, free: 14.47 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002685/1.048, allocations: 67.98 kB / 1.107 GB, free: 14.4 MB / 0.8731 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 41 * 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 (105): * Single equations (assignments): 101 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(8,16,100.0%), (8,16,100.0%), (8,38,100.0%), (8,38,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001282/1.049, allocations: 0.8102 MB / 1.108 GB, free: 13.58 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003477/1.05, allocations: 142.3 kB / 1.108 GB, free: 13.44 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02057/1.07, allocations: 8.886 MB / 1.117 GB, free: 4.52 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.059e-05/1.07, allocations: 16 kB / 1.117 GB, free: 4.504 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.72e-05/1.07, allocations: 32 kB / 1.117 GB, free: 4.473 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.981e-05/1.07, allocations: 11.95 kB / 1.117 GB, free: 4.461 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02832/1.099, allocations: 13.3 MB / 1.13 GB, free: 6.996 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.74e-05/1.099, allocations: 8.094 kB / 1.13 GB, free: 6.988 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005564/1.099, allocations: 119.8 kB / 1.13 GB, free: 6.871 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01733/1.117, allocations: 4.789 MB / 1.135 GB, free: 2.066 MB / 0.8887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003805/1.117, allocations: 43.98 kB / 1.135 GB, free: 2.023 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05579/1.173, allocations: 34.84 MB / 1.169 GB, free: 14.59 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.691e-05/1.173, allocations: 15.88 kB / 1.169 GB, free: 14.57 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02018/1.193, allocations: 8.4 MB / 1.177 GB, free: 6.09 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001318/1.195, allocations: 0.6202 MB / 1.177 GB, free: 5.449 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004143/1.195, allocations: 39.94 kB / 1.177 GB, free: 5.41 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00147/1.196, allocations: 87.89 kB / 1.178 GB, free: 5.324 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007589/1.197, allocations: 161.6 kB / 1.178 GB, free: 5.168 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001616/1.197, allocations: 44 kB / 1.178 GB, free: 5.125 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.001012/1.198, allocations: 0.7421 MB / 1.178 GB, free: 4.371 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.41e-07/1.198, allocations: 3.938 kB / 1.178 GB, free: 4.367 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.002969/1.201, allocations: 1.004 MB / 1.179 GB, free: 3.363 MB / 0.9356 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * 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 (66): * Single equations (assignments): 62 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(8,16,100.0%), (8,38,100.0%), (8,8,100.0%), (14,24,80.1%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.02024/1.222, allocations: 8.996 MB / 1.188 GB, free: 10.27 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.01264/1.234, allocations: 6.69 MB / 1.195 GB, free: 3.527 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 9.849e-06/1.234, allocations: 0 / 1.195 GB, free: 3.527 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.009435/1.244, allocations: 3.84 MB / 1.199 GB, free: 15.64 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002549/1.246, allocations: 240.8 kB / 1.199 GB, free: 15.41 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0633/1.31, allocations: 31.71 MB / 1.23 GB, free: 14.8 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002241/1.312, allocations: 1.859 MB / 1.232 GB, free: 12.9 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0009297/1.313, allocations: 355.4 kB / 1.232 GB, free: 12.55 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007586/1.314, allocations: 0.6086 MB / 1.232 GB, free: 11.94 MB / 0.9981 GB Notification: Performance of SimCode: time 7.82e-07/1.314, allocations: 0 / 1.232 GB, free: 11.94 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5659/1.88, allocations: 74.16 MB / 1.305 GB, free: 267.6 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.15/12.03, allocations: 6.469 kB / 1.305 GB, free: 267.6 MB / 1.014 GB (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC_N.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC_N.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC_N.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC_N.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC_N_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLineMatrix_RLC_N_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLineMatrix_RLC_N.fmu > Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC_N.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC_N_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLineMatrix_RLC_N.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC_N.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches