Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Impedances.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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.Loads.Examples.Impedances,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_ThreePhasesUnbalanced_Loads_Examples_Impedances",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Impedances,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_ThreePhasesUnbalanced_Loads_Examples_Impedances",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.001213/0.001213, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.00125/0.00125, allocations: 193.5 kB / 16.14 MB, free: 6.711 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.352/1.352, allocations: 222.9 MB / 239.8 MB, free: 4.609 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.276/2.276, allocations: 390.2 MB / 0.6643 GB, free: 0.6016 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001363/0.001363, allocations: 63.91 kB / 0.812 GB, free: 14.75 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5916/0.593, allocations: 140.3 MB / 0.949 GB, free: 9.367 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Impedances): time 0.01417/0.6072, allocations: 15.92 MB / 0.9646 GB, free: 13.17 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.007108/0.6143, allocations: 4.826 MB / 0.9693 GB, free: 9.352 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000777/0.6151, allocations: 59.31 kB / 0.9694 GB, free: 9.332 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.002171/0.6173, allocations: 0.9634 MB / 0.9703 GB, free: 8.59 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.001277/0.6186, allocations: 0.6946 MB / 0.971 GB, free: 8.031 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.001718/0.6203, allocations: 0.8367 MB / 0.9718 GB, free: 7.379 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.004098/0.6244, allocations: 5.265 MB / 0.9769 GB, free: 4.59 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.006246/0.6307, allocations: 5.43 MB / 0.9822 GB, free: 140 kB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001884/0.6326, allocations: 1.328 MB / 0.9835 GB, free: 14.8 MB / 0.7481 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001808/0.6344, allocations: 1.815 MB / 0.9853 GB, free: 12.98 MB / 0.7481 GB Notification: Performance of NFPackage.collectConstants: time 0.0003295/0.6347, allocations: 236 kB / 0.9855 GB, free: 12.75 MB / 0.7481 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001418/0.6362, allocations: 0.8269 MB / 0.9863 GB, free: 11.93 MB / 0.7481 GB Notification: Performance of NFScalarize.scalarize: time 0.001034/0.6372, allocations: 1.224 MB / 0.9875 GB, free: 10.7 MB / 0.7481 GB Notification: Performance of NFVerifyModel.verify: time 0.0012/0.6384, allocations: 1.342 MB / 0.9889 GB, free: 9.352 MB / 0.7481 GB Notification: Performance of NFConvertDAE.convert: time 0.003627/0.642, allocations: 5.056 MB / 0.9938 GB, free: 4.281 MB / 0.7481 GB Notification: Performance of FrontEnd - DAE generated: time 4.028e-06/0.6421, allocations: 0 / 0.9938 GB, free: 4.281 MB / 0.7481 GB Notification: Performance of FrontEnd: time 1.122e-06/0.6421, allocations: 0 / 0.9938 GB, free: 4.281 MB / 0.7481 GB Notification: Performance of Transformations before backend: time 3.646e-05/0.6421, allocations: 0 / 0.9938 GB, free: 4.281 MB / 0.7481 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 641 * Number of variables: 641 Notification: Performance of Generate backend data structure: time 0.003919/0.646, allocations: 2.662 MB / 0.9964 GB, free: 1.559 MB / 0.7481 GB Notification: Performance of prepare preOptimizeDAE: time 3.686e-05/0.6461, allocations: 8.031 kB / 0.9964 GB, free: 1.551 MB / 0.7481 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004048/0.6465, allocations: 370.5 kB / 0.9968 GB, free: 1.18 MB / 0.7481 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003603/0.6501, allocations: 0.8329 MB / 0.9976 GB, free: 352 kB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002086/0.6522, allocations: 1.501 MB / 0.999 GB, free: 14.8 MB / 0.7637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001151/0.6523, allocations: 177.1 kB / 0.9992 GB, free: 14.62 MB / 0.7637 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003267/0.6527, allocations: 236.4 kB / 0.9994 GB, free: 14.39 MB / 0.7637 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00547/0.6581, allocations: 4.159 MB / 1.003 GB, free: 10.09 MB / 0.7637 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.014e-05/0.6582, allocations: 7.906 kB / 1.003 GB, free: 10.09 MB / 0.7637 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002199/0.6584, allocations: 95.98 kB / 1.004 GB, free: 9.992 MB / 0.7637 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001645/0.6586, allocations: 176.5 kB / 1.004 GB, free: 9.816 MB / 0.7637 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004916/0.6635, allocations: 3.632 MB / 1.007 GB, free: 6.168 MB / 0.7637 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01514/0.6787, allocations: 16.54 MB / 1.023 GB, free: 4.199 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002922/0.6816, allocations: 2.3 MB / 1.026 GB, free: 1.688 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007523/0.6824, allocations: 0.5818 MB / 1.026 GB, free: 1.098 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001154/0.6825, allocations: 93.67 kB / 1.026 GB, free: 0.9883 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.55e-05/0.6825, allocations: 43.11 kB / 1.026 GB, free: 0.9375 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=72): time 1.934e-06/0.6825, allocations: 0 / 1.026 GB, free: 0.9375 MB / 0.7794 GB Notification: Performance of matching and sorting (n=76): time 0.004728/0.6873, allocations: 3.42 MB / 1.03 GB, free: 13.41 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.34e-05/0.6873, allocations: 119.5 kB / 1.03 GB, free: 13.27 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001082/0.6884, allocations: 1.018 MB / 1.031 GB, free: 12.22 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 4.624e-05/0.6885, allocations: 33.7 kB / 1.031 GB, free: 12.18 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005749/0.6891, allocations: 1.107 MB / 1.032 GB, free: 11.06 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001846/0.6892, allocations: 276.1 kB / 1.032 GB, free: 10.79 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003361/0.6896, allocations: 283.2 kB / 1.032 GB, free: 10.5 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001618/0.6898, allocations: 414.7 kB / 1.033 GB, free: 10.09 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008277/0.6906, allocations: 0.6246 MB / 1.033 GB, free: 9.465 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00115/0.6918, allocations: 1.185 MB / 1.035 GB, free: 8.02 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001961/0.6937, allocations: 1.864 MB / 1.036 GB, free: 5.895 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.999e-06/0.6937, allocations: 4 kB / 1.036 GB, free: 5.891 MB / 0.795 GB Notification: Performance of matching and sorting (n=173) (initialization): time 0.002737/0.6965, allocations: 2.011 MB / 1.038 GB, free: 3.859 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 2.315e-05/0.6965, allocations: 12 kB / 1.038 GB, free: 3.848 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.356e-05/0.6965, allocations: 28.02 kB / 1.038 GB, free: 3.82 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000379/0.6969, allocations: 159.3 kB / 1.039 GB, free: 3.652 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009858/0.6979, allocations: 343.4 kB / 1.039 GB, free: 3.316 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.559e-05/0.698, allocations: 43.8 kB / 1.039 GB, free: 3.273 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007958/0.6988, allocations: 139.7 kB / 1.039 GB, free: 3.137 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.527e-05/0.6989, allocations: 71.92 kB / 1.039 GB, free: 3.066 MB / 0.795 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 86 * 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 (169): * Single equations (assignments): 165 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 4 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 4 systems {(2,100.0%), (2,100.0%), (2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001029/0.6999, allocations: 0.9699 MB / 1.04 GB, free: 2.086 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001807/0.7001, allocations: 122.6 kB / 1.04 GB, free: 1.965 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001781/0.7019, allocations: 1.226 MB / 1.041 GB, free: 0.7109 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.213e-06/0.7019, allocations: 8 kB / 1.041 GB, free: 0.7031 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.883e-06/0.7019, allocations: 0 / 1.041 GB, free: 0.7031 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.717e-06/0.7019, allocations: 7.984 kB / 1.041 GB, free: 0.6953 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00469/0.7066, allocations: 3.8 MB / 1.045 GB, free: 12.75 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.424e-06/0.7066, allocations: 4 kB / 1.045 GB, free: 12.74 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005412/0.7072, allocations: 163.7 kB / 1.045 GB, free: 12.58 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003197/0.7075, allocations: 147.5 kB / 1.045 GB, free: 12.43 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.324e-05/0.7076, allocations: 12 kB / 1.046 GB, free: 12.41 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.272e-06/0.7076, allocations: 7.938 kB / 1.046 GB, free: 12.41 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.925e-06/0.7076, allocations: 4 kB / 1.046 GB, free: 12.4 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001679/0.7093, allocations: 1.468 MB / 1.047 GB, free: 10.88 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003359/0.7096, allocations: 271.7 kB / 1.047 GB, free: 10.59 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001272/0.7098, allocations: 23.91 kB / 1.047 GB, free: 10.57 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000527/0.7103, allocations: 67.89 kB / 1.047 GB, free: 10.5 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001183/0.7104, allocations: 68.36 kB / 1.047 GB, free: 10.43 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.409e-05/0.7105, allocations: 20 kB / 1.047 GB, free: 10.41 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.000762/0.7112, allocations: 0.6953 MB / 1.048 GB, free: 9.707 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7112, allocations: 0 / 1.048 GB, free: 9.707 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.00107/0.7123, allocations: 392 kB / 1.048 GB, free: 9.324 MB / 0.8106 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * 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 (76): * Single equations (assignments): 72 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 4 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 4 systems {(2,100.0%), (2,100.0%), (2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001981/0.7143, allocations: 2.029 MB / 1.05 GB, free: 7.23 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.001927/0.7162, allocations: 1.71 MB / 1.052 GB, free: 5.434 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.7162, allocations: 4 kB / 1.052 GB, free: 5.43 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0008251/0.7171, allocations: 0.8592 MB / 1.053 GB, free: 4.484 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001198/0.7183, allocations: 256.3 kB / 1.053 GB, free: 4.238 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01641/0.7347, allocations: 14.3 MB / 1.067 GB, free: 5.09 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001554/0.7363, allocations: 1.916 MB / 1.069 GB, free: 3.137 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0009926/0.7373, allocations: 457.4 kB / 1.069 GB, free: 2.688 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007554/0.738, allocations: 0.7102 MB / 1.07 GB, free: 1.977 MB / 0.8262 GB Notification: Performance of SimCode: time 6.51e-07/0.738, allocations: 0 / 1.07 GB, free: 1.977 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.385/3.123, allocations: 26.73 MB / 1.096 GB, free: 7.578 MB / 0.8575 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002147/3.123, allocations: 244.2 kB / 1.096 GB, free: 7.324 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.897/6.021, allocations: 4 kB / 1.096 GB, free: 7.32 MB / 0.8575 GB (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Impedances.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Impedances.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Impedances.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Impedances.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Impedances_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_AC_ThreePhasesUnbalanced_Loads_Examples_Impedances_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Electrical_AC_ThreePhasesUnbalanced_Loads_Examples_Impedances.fmu > Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Impedances.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Impedances_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_ThreePhasesUnbalanced_Loads_Examples_Impedances.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Impedances.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches