Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC.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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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.ACLine_RLC,fileNamePrefix="Buildings_10_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RLC",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC,fileNamePrefix="Buildings_10_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RLC",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.007218/0.007218, allocations: 104.7 kB / 15.74 MB, free: 6.484 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.001385/0.001386, allocations: 193.5 kB / 16.67 MB, free: 6.375 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.404/1.404, allocations: 222.9 MB / 240.4 MB, free: 4.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.708/2.708, allocations: 437 MB / 0.7105 GB, free: 4.961 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001599/0.001599, allocations: 59.91 kB / 1.018 GB, free: 15.11 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3182/0.3198, allocations: 151.6 MB / 1.166 GB, free: 7.367 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC): time 0.04015/0.36, allocations: 37.59 MB / 1.203 GB, free: 1.648 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.02413/0.3842, allocations: 13.05 MB / 1.216 GB, free: 4.566 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004861/0.3891, allocations: 175.1 kB / 1.216 GB, free: 4.395 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.01041/0.3996, allocations: 3.892 MB / 1.22 GB, free: 0.4922 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.007703/0.4073, allocations: 2.612 MB / 1.222 GB, free: 13.87 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.00765/0.415, allocations: 2.708 MB / 1.225 GB, free: 11.16 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.01276/0.4278, allocations: 9.599 MB / 1.234 GB, free: 1.531 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01514/0.443, allocations: 10.5 MB / 1.244 GB, free: 6.895 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.007949/0.451, allocations: 4.074 MB / 1.248 GB, free: 2.809 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.6786/1.13, allocations: 4.371 MB / 1.253 GB, free: 24.57 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.003374/1.133, allocations: 0.7698 MB / 1.253 GB, free: 24.57 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005495/1.139, allocations: 1.776 MB / 1.255 GB, free: 24.57 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.00488/1.143, allocations: 3.031 MB / 1.258 GB, free: 24.57 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.009801/1.153, allocations: 3.584 MB / 1.262 GB, free: 24.29 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.02484/1.178, allocations: 11.86 MB / 1.273 GB, free: 23.21 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 7.614e-06/1.178, allocations: 1 kB / 1.273 GB, free: 23.21 MB / 0.9981 GB Notification: Performance of FrontEnd: time 2.515e-06/1.178, allocations: 0 / 1.273 GB, free: 23.21 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 0.0004806/1.179, allocations: 0 / 1.273 GB, free: 23.21 MB / 0.9981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1394 * Number of variables: 1394 Notification: Performance of Generate backend data structure: time 0.03144/1.21, allocations: 6.361 MB / 1.279 GB, free: 20.91 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 5.37e-05/1.21, allocations: 9.625 kB / 1.279 GB, free: 20.91 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004423/1.215, allocations: 0.7481 MB / 1.28 GB, free: 20.84 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01118/1.226, allocations: 1.299 MB / 1.281 GB, free: 20.52 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01069/1.237, allocations: 3.786 MB / 1.285 GB, free: 19.7 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004329/1.237, allocations: 384.8 kB / 1.285 GB, free: 19.69 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003545/1.241, allocations: 0.4945 MB / 1.286 GB, free: 19.69 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02443/1.265, allocations: 8.886 MB / 1.295 GB, free: 17.61 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001861/1.265, allocations: 31.5 kB / 1.295 GB, free: 17.6 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001037/1.266, allocations: 222.7 kB / 1.295 GB, free: 17.45 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001911/1.268, allocations: 0.6295 MB / 1.295 GB, free: 17.39 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01494/1.283, allocations: 7.017 MB / 1.302 GB, free: 14.98 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05651/1.34, allocations: 40.05 MB / 1.341 GB, free: 13.57 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004254/1.344, allocations: 2.901 MB / 1.344 GB, free: 11.97 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00425/1.348, allocations: 2.66 MB / 1.347 GB, free: 10.59 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002492/1.349, allocations: 29.5 kB / 1.347 GB, free: 10.59 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.283e-05/1.349, allocations: 72.77 kB / 1.347 GB, free: 10.52 MB / 1.029 GB Notification: Performance of pre-optimization done (n=265): time 5.38e-06/1.349, allocations: 0 / 1.347 GB, free: 10.52 MB / 1.029 GB Notification: Performance of matching and sorting (n=424): time 0.2879/1.637, allocations: 74.68 MB / 1.42 GB, free: 8.977 MB / 1.092 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.977e-05/1.637, allocations: 102.7 kB / 1.42 GB, free: 8.863 MB / 1.092 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004326/1.641, allocations: 2.359 MB / 1.422 GB, free: 6.492 MB / 1.092 GB Notification: Performance of collectPreVariables (initialization): time 0.001222/1.642, allocations: 97.7 kB / 1.422 GB, free: 6.391 MB / 1.092 GB Notification: Performance of collectInitialEqns (initialization): time 0.001779/1.644, allocations: 2.336 MB / 1.425 GB, free: 4.039 MB / 1.092 GB Notification: Performance of collectInitialBindings (initialization): time 0.002379/1.647, allocations: 1.439 MB / 1.426 GB, free: 2.613 MB / 1.092 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002967/1.65, allocations: 0.7237 MB / 1.427 GB, free: 1.879 MB / 1.092 GB Notification: Performance of setup shared object (initialization): time 8.71e-05/1.65, allocations: 305.1 kB / 1.427 GB, free: 1.578 MB / 1.092 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004873/1.654, allocations: 2.999 MB / 1.43 GB, free: 14.57 MB / 1.107 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005523/1.66, allocations: 3.843 MB / 1.434 GB, free: 10.41 MB / 1.107 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0116/1.672, allocations: 7.388 MB / 1.441 GB, free: 2.789 MB / 1.107 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.088e-05/1.672, allocations: 12 kB / 1.441 GB, free: 2.777 MB / 1.107 GB Notification: Performance of matching and sorting (n=551) (initialization): time 0.03273/1.704, allocations: 12.55 MB / 1.453 GB, free: 6.426 MB / 1.123 GB Notification: Performance of prepare postOptimizeDAE: time 4.852e-05/1.705, allocations: 18.06 kB / 1.453 GB, free: 6.41 MB / 1.123 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.443e-05/1.705, allocations: 24 kB / 1.453 GB, free: 6.387 MB / 1.123 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02367/1.728, allocations: 6.028 MB / 1.459 GB, free: 320 kB / 1.123 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00231/1.731, allocations: 499.8 kB / 1.46 GB, free: 15.86 MB / 1.139 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0851/1.816, allocations: 72.97 MB / 1.531 GB, free: 3.832 MB / 1.201 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006231/1.822, allocations: 219.8 kB / 1.531 GB, free: 3.617 MB / 1.201 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002245/1.824, allocations: 156 kB / 1.531 GB, free: 3.465 MB / 1.201 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 101 * 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 (269): * Single equations (assignments): 245 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 24 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 24 systems {(2,2,100.0%), (1,1,100.0%), (2,2,100.0%), (1,1,100.0%), (2,2,100.0%), (1,1,100.0%), (4,16,100.0%), (4,16,100.0%), (4,16,100.0%), (4,16,100.0%), (4,16,100.0%), (4,16,100.0%), (2,8,100.0%), (2,16,100.0%), (3,15,100.0%), (2,8,100.0%), (2,8,100.0%), (2,16,100.0%), (3,15,100.0%), (2,8,100.0%), (2,8,100.0%), (2,16,100.0%), (3,15,100.0%), (2,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.008151/1.832, allocations: 1.993 MB / 1.533 GB, free: 1.496 MB / 1.201 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002269/1.835, allocations: 387.4 kB / 1.534 GB, free: 1.113 MB / 1.201 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03329/1.868, allocations: 12.24 MB / 1.546 GB, free: 4.938 MB / 1.217 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.562e-05/1.868, allocations: 44 kB / 1.546 GB, free: 4.895 MB / 1.217 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001755/1.868, allocations: 51.94 kB / 1.546 GB, free: 4.844 MB / 1.217 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000101/1.868, allocations: 23.92 kB / 1.546 GB, free: 4.82 MB / 1.217 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04648/1.915, allocations: 19.13 MB / 1.564 GB, free: 1.707 MB / 1.232 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.696e-05/1.915, allocations: 8.266 kB / 1.564 GB, free: 1.699 MB / 1.232 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001996/1.917, allocations: 295.8 kB / 1.565 GB, free: 1.426 MB / 1.232 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02126/1.938, allocations: 5.577 MB / 1.57 GB, free: 11.8 MB / 1.248 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001118/1.94, allocations: 80 kB / 1.57 GB, free: 11.72 MB / 1.248 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.08319/2.023, allocations: 70.61 MB / 1.639 GB, free: 2.051 MB / 1.311 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.325e-05/2.023, allocations: 11.66 kB / 1.639 GB, free: 2.043 MB / 1.311 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03552/2.058, allocations: 15.62 MB / 1.654 GB, free: 2.379 MB / 1.326 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003498/2.062, allocations: 1.043 MB / 1.655 GB, free: 1.312 MB / 1.326 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001784/2.064, allocations: 87.98 kB / 1.655 GB, free: 1.227 MB / 1.326 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003948/2.068, allocations: 215.7 kB / 1.656 GB, free: 1.016 MB / 1.326 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002476/2.07, allocations: 406.4 kB / 1.656 GB, free: 0.6289 MB / 1.326 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008603/2.071, allocations: 108 kB / 1.656 GB, free: 0.5234 MB / 1.326 GB Notification: Performance of sorting global known variables: time 0.003368/2.074, allocations: 1.56 MB / 1.658 GB, free: 14.96 MB / 1.342 GB Notification: Performance of sort global known variables: time 4.41e-07/2.074, allocations: 0 / 1.658 GB, free: 14.96 MB / 1.342 GB Notification: Performance of remove unused functions: time 0.008818/2.083, allocations: 1.859 MB / 1.66 GB, free: 13.11 MB / 1.342 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 31 * Number of states: 6 (RLCLine_sc.phase1.Vc[1],RLCLine_sc.phase1.Vc[2],RLCLine_sc.phase2.Vc[1],RLCLine_sc.phase2.Vc[2],RLCLine_sc.phase3.Vc[1],RLCLine_sc.phase3.Vc[2]) * 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 (145): * Single equations (assignments): 121 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 24 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 24 systems {(2,8,100.0%), (2,8,100.0%), (2,8,100.0%), (3,15,100.0%), (3,15,100.0%), (3,15,100.0%), (4,16,100.0%), (4,16,100.0%), (4,16,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (2,2,100.0%), (2,2,100.0%), (2,2,100.0%), (2,8,100.0%), (3,15,100.0%), (2,8,100.0%), (3,15,100.0%), (2,8,100.0%), (3,15,100.0%), (4,16,100.0%), (4,16,100.0%), (4,16,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.03369/2.117, allocations: 16.29 MB / 1.675 GB, free: 12.77 MB / 1.357 GB Notification: Performance of simCode: created initialization part: time 0.02347/2.141, allocations: 12.21 MB / 1.687 GB, free: 340 kB / 1.357 GB Notification: Performance of simCode: created event and clocks part: time 1.425e-05/2.141, allocations: 2.812 kB / 1.687 GB, free: 340 kB / 1.357 GB Notification: Performance of simCode: created simulation system equations: time 0.01849/2.159, allocations: 8.361 MB / 1.696 GB, free: 7.707 MB / 1.373 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008867/2.168, allocations: 1.19 MB / 1.697 GB, free: 6.551 MB / 1.373 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1264/2.294, allocations: 53.86 MB / 1.749 GB, free: 15.69 MB / 1.436 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007544/2.302, allocations: 4.095 MB / 1.753 GB, free: 11.56 MB / 1.436 GB Notification: Performance of simCode: alias equations: time 0.002932/2.305, allocations: 0.663 MB / 1.754 GB, free: 10.89 MB / 1.436 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003586/2.309, allocations: 2.127 MB / 1.756 GB, free: 8.766 MB / 1.436 GB Notification: Performance of SimCode: time 9.52e-07/2.309, allocations: 0 / 1.756 GB, free: 8.766 MB / 1.436 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8949/3.203, allocations: 150.9 MB / 1.903 GB, free: 463.2 MB / 1.467 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.66/21.86, allocations: 9.672 kB / 1.903 GB, free: 463.2 MB / 1.467 GB (rm -f Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC.pipe ; mkfifo Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC.pipe >> ../files/Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_res.mat --tempDir=temp_Buildings_10_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RLC_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RLC.fmu > Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RLC.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches