Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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.OnePhase.Lines.Examples.ACLine_RL,fileNamePrefix="Buildings_latest_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_latest_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_RL",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.004413/0.004413, allocations: 100.5 kB / 15.73 MB, free: 6.02 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.001317/0.001317, allocations: 189.7 kB / 16.67 MB, free: 5.938 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.402/1.402, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.728/2.728, allocations: 482.4 MB / 0.7548 GB, free: 6.883 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001905/0.001905, allocations: 63.64 kB / 1.083 GB, free: 13.93 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2797/0.2816, allocations: 162.2 MB / 1.241 GB, free: 9.281 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL): time 0.007235/0.2889, allocations: 5.467 MB / 1.247 GB, free: 3.789 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.003953/0.2928, allocations: 2.623 MB / 1.249 GB, free: 1.156 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002041/0.2931, allocations: 23.81 kB / 1.249 GB, free: 1.133 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.00171/0.2948, allocations: 0.6768 MB / 1.25 GB, free: 464 kB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.00073/0.2955, allocations: 405.8 kB / 1.25 GB, free: 56 kB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007871/0.2963, allocations: 394.4 kB / 1.251 GB, free: 15.67 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0009727/0.2973, allocations: 0.9591 MB / 1.252 GB, free: 14.71 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006193/0.2979, allocations: 462.8 kB / 1.252 GB, free: 14.25 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004096/0.2983, allocations: 366.6 kB / 1.253 GB, free: 13.89 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005139/0.2989, allocations: 410.4 kB / 1.253 GB, free: 13.49 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 8.143e-05/0.299, allocations: 48 kB / 1.253 GB, free: 13.45 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005774/0.2995, allocations: 355.3 kB / 1.253 GB, free: 13.1 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0002531/0.2998, allocations: 255.3 kB / 1.254 GB, free: 12.85 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.00034/0.3002, allocations: 346.2 kB / 1.254 GB, free: 12.51 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.00106/0.3012, allocations: 0.9845 MB / 1.255 GB, free: 11.52 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.526e-06/0.3012, allocations: 0 / 1.255 GB, free: 11.52 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.473e-06/0.3012, allocations: 0 / 1.255 GB, free: 11.52 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 8.295e-06/0.3013, allocations: 0 / 1.255 GB, free: 11.52 MB / 0.9825 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.00152/0.3028, allocations: 0.9845 MB / 1.256 GB, free: 10.48 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.356e-05/0.3028, allocations: 15.97 kB / 1.256 GB, free: 10.47 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001226/0.303, allocations: 106.6 kB / 1.256 GB, free: 10.36 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001369/0.3043, allocations: 196.3 kB / 1.256 GB, free: 10.16 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007673/0.3051, allocations: 0.5261 MB / 1.257 GB, free: 9.602 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.559e-05/0.3052, allocations: 37.38 kB / 1.257 GB, free: 9.562 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000145/0.3053, allocations: 56.5 kB / 1.257 GB, free: 9.508 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001182/0.3065, allocations: 0.8316 MB / 1.258 GB, free: 8.59 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.728e-05/0.3065, allocations: 7.938 kB / 1.258 GB, free: 8.582 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.84e-05/0.3066, allocations: 20 kB / 1.258 GB, free: 8.562 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001856/0.3068, allocations: 64.95 kB / 1.258 GB, free: 8.5 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009208/0.3077, allocations: 0.5697 MB / 1.258 GB, free: 7.93 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004461/0.3122, allocations: 4.578 MB / 1.263 GB, free: 3 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004797/0.3127, allocations: 299.3 kB / 1.263 GB, free: 2.699 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003212/0.313, allocations: 221.3 kB / 1.263 GB, free: 2.48 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.995e-05/0.313, allocations: 4.281 kB / 1.263 GB, free: 2.477 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.983e-05/0.3131, allocations: 34.84 kB / 1.263 GB, free: 2.434 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=33): time 1.573e-06/0.3131, allocations: 4 kB / 1.263 GB, free: 2.43 MB / 0.9825 GB Notification: Performance of matching and sorting (n=40): time 0.005673/0.3188, allocations: 2.644 MB / 1.266 GB, free: 15.66 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.012e-05/0.3188, allocations: 55.41 kB / 1.266 GB, free: 15.59 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004949/0.3193, allocations: 458 kB / 1.266 GB, free: 15.13 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 3.813e-05/0.3194, allocations: 33.7 kB / 1.266 GB, free: 15.09 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002467/0.3196, allocations: 344.5 kB / 1.267 GB, free: 14.75 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001266/0.3198, allocations: 158.7 kB / 1.267 GB, free: 14.6 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001719/0.3199, allocations: 106.2 kB / 1.267 GB, free: 14.49 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001636/0.3201, allocations: 362.8 kB / 1.267 GB, free: 14.12 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003787/0.3205, allocations: 233 kB / 1.267 GB, free: 13.89 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005033/0.321, allocations: 414.3 kB / 1.268 GB, free: 13.42 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009301/0.3219, allocations: 0.6779 MB / 1.268 GB, free: 12.67 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.3219, allocations: 0 / 1.268 GB, free: 12.67 MB / 0.9981 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001722/0.3237, allocations: 0.925 MB / 1.269 GB, free: 11.73 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.869e-05/0.3237, allocations: 8 kB / 1.269 GB, free: 11.72 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.975e-06/0.3237, allocations: 4 kB / 1.269 GB, free: 11.71 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007975/0.3245, allocations: 226.9 kB / 1.27 GB, free: 11.48 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005024/0.325, allocations: 115.8 kB / 1.27 GB, free: 11.37 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005456/0.3305, allocations: 5.344 MB / 1.275 GB, free: 5.605 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003804/0.3309, allocations: 27.97 kB / 1.275 GB, free: 5.578 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.291e-05/0.3309, allocations: 24.19 kB / 1.275 GB, free: 5.555 MB / 0.9981 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.0002759/0.3312, allocations: 226.2 kB / 1.275 GB, free: 5.324 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.678e-05/0.3313, allocations: 63.75 kB / 1.275 GB, free: 5.262 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001574/0.3329, allocations: 0.7813 MB / 1.276 GB, free: 4.461 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.32e-06/0.3329, allocations: 4 kB / 1.276 GB, free: 4.457 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.567e-06/0.3329, allocations: 3.938 kB / 1.276 GB, free: 4.453 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.078e-06/0.3329, allocations: 0 / 1.276 GB, free: 4.453 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002472/0.3354, allocations: 1.506 MB / 1.278 GB, free: 2.859 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.146e-06/0.3354, allocations: 0 / 1.278 GB, free: 2.859 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003778/0.3358, allocations: 71.88 kB / 1.278 GB, free: 2.789 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006856/0.3365, allocations: 206.5 kB / 1.278 GB, free: 2.578 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.279e-05/0.3366, allocations: 8 kB / 1.278 GB, free: 2.57 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005252/0.3418, allocations: 5.27 MB / 1.283 GB, free: 12.88 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.952e-06/0.3418, allocations: 7.969 kB / 1.283 GB, free: 12.88 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001845/0.3437, allocations: 1.135 MB / 1.284 GB, free: 11.69 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002205/0.3439, allocations: 172.7 kB / 1.284 GB, free: 11.5 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.189e-05/0.344, allocations: 11.98 kB / 1.284 GB, free: 11.49 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003305/0.3443, allocations: 27.97 kB / 1.284 GB, free: 11.46 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.918e-05/0.3444, allocations: 35.89 kB / 1.284 GB, free: 11.43 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.964e-05/0.3445, allocations: 12 kB / 1.284 GB, free: 11.42 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.0003494/0.3448, allocations: 310.9 kB / 1.285 GB, free: 11.12 MB / 1.014 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3448, allocations: 0 / 1.285 GB, free: 11.12 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.0006456/0.3455, allocations: 172 kB / 1.285 GB, free: 10.95 MB / 1.014 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.002168/0.3477, allocations: 1.688 MB / 1.286 GB, free: 9.199 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.001656/0.3493, allocations: 1.016 MB / 1.287 GB, free: 8.145 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 5.059e-06/0.3493, allocations: 4 kB / 1.287 GB, free: 8.141 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.001007/0.3503, allocations: 0.6798 MB / 1.288 GB, free: 7.422 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008911/0.3513, allocations: 176.6 kB / 1.288 GB, free: 7.254 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007853/0.3591, allocations: 5.627 MB / 1.294 GB, free: 1.344 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005951/0.3597, allocations: 0.9493 MB / 1.295 GB, free: 376 kB / 1.014 GB Notification: Performance of simCode: alias equations: time 0.0003288/0.3601, allocations: 113 kB / 1.295 GB, free: 260 kB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002827/0.3604, allocations: 215.4 kB / 1.295 GB, free: 44 kB / 1.014 GB Notification: Performance of SimCode: time 6.61e-07/0.3604, allocations: 0 / 1.295 GB, free: 44 kB / 1.014 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04788/0.4083, allocations: 14.1 MB / 1.309 GB, free: 2.211 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.73/11.14, allocations: 15.78 kB / 1.309 GB, free: 2.199 MB / 1.029 GB (rm -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL_res.csv --start-time 0 --stop-time 1 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_latest_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_RL.fmu > Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_RL.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches