Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001865/0.001865, allocations: 99.75 kB / 18.95 MB, free: 2.832 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002504/0.002504, allocations: 213.6 kB / 22.25 MB, free: 5.105 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.478/1.478, allocations: 230.6 MB / 256 MB, free: 7.848 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.167/3.167, allocations: 0.49 GB / 0.7951 GB, free: 35.45 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL,fileNamePrefix="Buildings_12_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_RL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL,fileNamePrefix="Buildings_12_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_RL",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001954/0.001954, allocations: 64.66 kB / 1.154 GB, free: 25.43 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3283/0.3303, allocations: 176.1 MB / 1.326 GB, free: 1.523 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL): time 0.008252/0.3385, allocations: 5.286 MB / 1.331 GB, free: 12.22 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.005172/0.3437, allocations: 2.611 MB / 1.334 GB, free: 9.598 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007151/0.3444, allocations: 35.69 kB / 1.334 GB, free: 9.562 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.002171/0.3466, allocations: 0.6803 MB / 1.334 GB, free: 8.883 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.001294/0.3479, allocations: 425.7 kB / 1.335 GB, free: 8.465 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.001139/0.349, allocations: 387.1 kB / 1.335 GB, free: 8.086 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.001405/0.3504, allocations: 0.9516 MB / 1.336 GB, free: 7.129 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006532/0.3511, allocations: 386.5 kB / 1.336 GB, free: 6.738 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006982/0.3518, allocations: 394.5 kB / 1.337 GB, free: 6.352 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006612/0.3524, allocations: 426.4 kB / 1.337 GB, free: 5.934 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 7.514e-05/0.3525, allocations: 48 kB / 1.337 GB, free: 5.887 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000653/0.3532, allocations: 331.3 kB / 1.337 GB, free: 5.562 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.0002743/0.3534, allocations: 255.2 kB / 1.338 GB, free: 5.312 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0003351/0.3538, allocations: 290.6 kB / 1.338 GB, free: 5.027 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.001302/0.3551, allocations: 0.9767 MB / 1.339 GB, free: 4.047 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.3551, allocations: 0 / 1.339 GB, free: 4.047 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.182e-06/0.3551, allocations: 0 / 1.339 GB, free: 4.047 MB / 1.029 GB Notification: Performance of Transformations before backend: time 1.207e-05/0.3551, allocations: 0 / 1.339 GB, free: 4.047 MB / 1.029 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 140 * Number of variables: 140 Notification: Performance of Generate backend data structure: time 0.001826/0.3569, allocations: 0.9227 MB / 1.34 GB, free: 3.094 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.7e-05/0.357, allocations: 8.031 kB / 1.34 GB, free: 3.086 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001272/0.3571, allocations: 94.7 kB / 1.34 GB, free: 2.984 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001427/0.3585, allocations: 204.2 kB / 1.34 GB, free: 2.785 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000951/0.3595, allocations: 459.6 kB / 1.341 GB, free: 2.312 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.952e-05/0.3595, allocations: 37.36 kB / 1.341 GB, free: 2.277 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001665/0.3597, allocations: 56.55 kB / 1.341 GB, free: 2.223 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001383/0.3611, allocations: 0.9861 MB / 1.342 GB, free: 1.113 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.531e-05/0.3611, allocations: 3.953 kB / 1.342 GB, free: 1.109 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.758e-05/0.3612, allocations: 27.98 kB / 1.342 GB, free: 1.082 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002167/0.3614, allocations: 68.95 kB / 1.342 GB, free: 1.016 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009381/0.3623, allocations: 0.5735 MB / 1.342 GB, free: 452 kB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004556/0.3669, allocations: 3.569 MB / 1.346 GB, free: 12.73 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005426/0.3674, allocations: 275.3 kB / 1.346 GB, free: 12.45 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000315/0.3677, allocations: 213.3 kB / 1.346 GB, free: 12.24 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 3.071e-05/0.3678, allocations: 4.281 kB / 1.346 GB, free: 12.24 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.038e-05/0.3678, allocations: 34.84 kB / 1.346 GB, free: 12.2 MB / 1.045 GB Notification: Performance of pre-optimization done (n=33): time 2.505e-06/0.3678, allocations: 3.938 kB / 1.346 GB, free: 12.19 MB / 1.045 GB Notification: Performance of matching and sorting (n=40): time 0.005839/0.3736, allocations: 2.338 MB / 1.349 GB, free: 9.801 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.108e-05/0.3737, allocations: 59.39 kB / 1.349 GB, free: 9.73 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006476/0.3743, allocations: 469.8 kB / 1.349 GB, free: 9.262 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 5.527e-05/0.3744, allocations: 33.7 kB / 1.349 GB, free: 9.223 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002848/0.3747, allocations: 352.5 kB / 1.349 GB, free: 8.875 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001409/0.3748, allocations: 150.7 kB / 1.35 GB, free: 8.727 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001875/0.375, allocations: 102.3 kB / 1.35 GB, free: 8.621 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001881/0.3752, allocations: 362.8 kB / 1.35 GB, free: 8.258 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003721/0.3756, allocations: 241.2 kB / 1.35 GB, free: 8.023 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005102/0.3761, allocations: 403.4 kB / 1.351 GB, free: 7.551 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009267/0.377, allocations: 0.6855 MB / 1.351 GB, free: 6.793 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.949e-06/0.377, allocations: 4 kB / 1.351 GB, free: 6.789 MB / 1.045 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001878/0.3789, allocations: 0.9093 MB / 1.352 GB, free: 5.863 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 2.397e-05/0.3789, allocations: 8.656 kB / 1.352 GB, free: 5.855 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.524e-05/0.3789, allocations: 11.98 kB / 1.352 GB, free: 5.844 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009332/0.3799, allocations: 226.3 kB / 1.352 GB, free: 5.613 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005332/0.3804, allocations: 115.8 kB / 1.353 GB, free: 5.5 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005683/0.3861, allocations: 5.003 MB / 1.357 GB, free: 156 kB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005603/0.3866, allocations: 35.97 kB / 1.357 GB, free: 120 kB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.901e-05/0.3867, allocations: 24 kB / 1.357 GB, free: 96 kB / 1.045 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * 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 (58): * Single equations (assignments): 55 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(2,4,100.0%), (2,2,100.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003833/0.3871, allocations: 222.1 kB / 1.358 GB, free: 15.87 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001196/0.3872, allocations: 63.56 kB / 1.358 GB, free: 15.8 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001627/0.3888, allocations: 0.766 MB / 1.359 GB, free: 15.02 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.711e-06/0.3888, allocations: 4 kB / 1.359 GB, free: 15.02 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.989e-06/0.3888, allocations: 0 / 1.359 GB, free: 15.02 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.472e-06/0.3888, allocations: 4 kB / 1.359 GB, free: 15.01 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002671/0.3915, allocations: 1.396 MB / 1.36 GB, free: 13.54 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.61e-06/0.3915, allocations: 0 / 1.36 GB, free: 13.54 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003979/0.3919, allocations: 63.95 kB / 1.36 GB, free: 13.47 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007189/0.3926, allocations: 206.5 kB / 1.36 GB, free: 13.26 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.079e-05/0.3927, allocations: 15.98 kB / 1.36 GB, free: 13.25 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005283/0.398, allocations: 4.936 MB / 1.365 GB, free: 7.965 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.889e-06/0.398, allocations: 4.156 kB / 1.365 GB, free: 7.961 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001961/0.3999, allocations: 1.135 MB / 1.366 GB, free: 6.777 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003128/0.4002, allocations: 107.5 kB / 1.366 GB, free: 6.672 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.978e-05/0.4003, allocations: 12 kB / 1.366 GB, free: 6.66 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003366/0.4007, allocations: 23.97 kB / 1.366 GB, free: 6.637 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001044/0.4008, allocations: 39.98 kB / 1.366 GB, free: 6.598 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.297e-05/0.4008, allocations: 16 kB / 1.366 GB, free: 6.582 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0003833/0.4012, allocations: 310.9 kB / 1.367 GB, free: 6.281 MB / 1.061 GB Notification: Performance of sort global known variables: time 9e-08/0.4012, allocations: 0 / 1.367 GB, free: 6.281 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0007432/0.4019, allocations: 164 kB / 1.367 GB, free: 6.121 MB / 1.061 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 2 (RL_3.i_p[1],RL_3.i_p[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 (30): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(2,2,100.0%), (2,4,100.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002302/0.4042, allocations: 1.693 MB / 1.368 GB, free: 4.371 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.001822/0.406, allocations: 0.9729 MB / 1.369 GB, free: 3.359 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 4.769e-06/0.406, allocations: 0 / 1.369 GB, free: 3.359 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.001018/0.4071, allocations: 0.6641 MB / 1.37 GB, free: 2.656 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009505/0.408, allocations: 179.9 kB / 1.37 GB, free: 2.484 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008517/0.4165, allocations: 5.609 MB / 1.376 GB, free: 12.58 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004081/0.4169, allocations: 350.2 kB / 1.376 GB, free: 12.21 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 0.0004374/0.4174, allocations: 113 kB / 1.376 GB, free: 12.1 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003025/0.4177, allocations: 207.4 kB / 1.376 GB, free: 11.9 MB / 1.076 GB Notification: Performance of SimCode: time 1.262e-06/0.4177, allocations: 4 kB / 1.376 GB, free: 11.89 MB / 1.076 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05648/0.4742, allocations: 15.83 MB / 1.392 GB, free: 12.43 MB / 1.092 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.82/12.29, allocations: 13.52 kB / 1.392 GB, free: 12.43 MB / 1.092 GB " [Timeout remaining time 288] (rm -f Buildings_12_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe ; mkfifo Buildings_12_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe ; head -c 1048576 < Buildings_12_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe >> ../files/Buildings_12_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL_res.mat --tempDir=temp_Buildings_12_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_RL_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_RL.fmu > Buildings_12_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_RL.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 19.088487400993472]