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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.0009985/0.0009986, allocations: 97.41 kB / 15.36 MB, free: 0.7344 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.007563/0.007563, allocations: 170.9 kB / 16.27 MB, free: 6.652 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.243/1.243, allocations: 223.3 MB / 240.3 MB, free: 5.352 MB / 190.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/Experimental/DHC/UsersGuide/package.mo:2:1-389:15:writable] Warning: UsersGuide was referenced in the package.order file, but was not found in package.mo, UsersGuide/package.mo or UsersGuide.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.312/2.312, allocations: 443.4 MB / 0.7176 GB, free: 1.441 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003229/0.0003229, allocations: 8.094 kB / 0.8797 GB, free: 41.99 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2203/0.2207, allocations: 155.2 MB / 1.031 GB, free: 4.391 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL): time 0.005164/0.2259, allocations: 5.091 MB / 1.036 GB, free: 15.28 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.003246/0.2291, allocations: 2.6 MB / 1.039 GB, free: 12.67 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001778/0.2293, allocations: 19.88 kB / 1.039 GB, free: 12.65 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.0002125/0.2296, allocations: 99.14 kB / 1.039 GB, free: 12.55 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.00068/0.2302, allocations: 386.1 kB / 1.039 GB, free: 12.17 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006327/0.2309, allocations: 366 kB / 1.04 GB, free: 11.82 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0009829/0.2319, allocations: 1.252 MB / 1.041 GB, free: 10.56 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001089/0.233, allocations: 0.7757 MB / 1.042 GB, free: 9.746 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003089/0.2333, allocations: 310.5 kB / 1.042 GB, free: 9.441 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004024/0.2337, allocations: 382.5 kB / 1.042 GB, free: 9.066 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 4.813e-05/0.2338, allocations: 28 kB / 1.042 GB, free: 9.039 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005324/0.2343, allocations: 439 kB / 1.043 GB, free: 8.609 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.0001961/0.2345, allocations: 223.3 kB / 1.043 GB, free: 8.391 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.0002599/0.2348, allocations: 336 kB / 1.043 GB, free: 8.055 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.000789/0.2356, allocations: 0.9576 MB / 1.044 GB, free: 7.094 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 3.096e-06/0.2356, allocations: 0 / 1.044 GB, free: 7.094 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.523e-06/0.2356, allocations: 0 / 1.044 GB, free: 7.094 MB / 0.795 GB Notification: Performance of Transformations before backend: time 6.603e-06/0.2356, allocations: 0 / 1.044 GB, free: 7.094 MB / 0.795 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.001159/0.2368, allocations: 0.8414 MB / 1.045 GB, free: 6.203 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.112e-05/0.2368, allocations: 12.03 kB / 1.045 GB, free: 6.191 MB / 0.795 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001047/0.2369, allocations: 102.7 kB / 1.045 GB, free: 6.082 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001249/0.2382, allocations: 191.8 kB / 1.045 GB, free: 5.895 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005782/0.2388, allocations: 486.5 kB / 1.046 GB, free: 5.379 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.756e-05/0.2388, allocations: 41.36 kB / 1.046 GB, free: 5.34 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001324/0.2389, allocations: 60.45 kB / 1.046 GB, free: 5.281 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001012/0.24, allocations: 0.8238 MB / 1.047 GB, free: 4.371 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.969e-05/0.24, allocations: 8 kB / 1.047 GB, free: 4.363 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.244e-05/0.24, allocations: 23.98 kB / 1.047 GB, free: 4.34 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001729/0.2402, allocations: 68.94 kB / 1.047 GB, free: 4.273 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007925/0.241, allocations: 0.5774 MB / 1.047 GB, free: 3.695 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003725/0.2447, allocations: 4.585 MB / 1.052 GB, free: 14.76 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004174/0.2452, allocations: 307.2 kB / 1.052 GB, free: 14.45 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002836/0.2455, allocations: 221.3 kB / 1.052 GB, free: 14.23 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.492e-05/0.2455, allocations: 8.281 kB / 1.052 GB, free: 14.23 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.876e-05/0.2455, allocations: 38.78 kB / 1.052 GB, free: 14.18 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=33): time 1.453e-06/0.2455, allocations: 4 kB / 1.052 GB, free: 14.18 MB / 0.8106 GB Notification: Performance of matching and sorting (n=40): time 0.005028/0.2506, allocations: 2.627 MB / 1.055 GB, free: 11.42 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.024e-05/0.2506, allocations: 55.41 kB / 1.055 GB, free: 11.36 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004187/0.251, allocations: 465.8 kB / 1.055 GB, free: 10.89 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 3.332e-05/0.2511, allocations: 33.7 kB / 1.055 GB, free: 10.85 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002047/0.2513, allocations: 339.6 kB / 1.056 GB, free: 10.51 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 9.726e-05/0.2514, allocations: 146 kB / 1.056 GB, free: 10.37 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.884e-05/0.2515, allocations: 45.7 kB / 1.056 GB, free: 10.32 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001277/0.2516, allocations: 362.8 kB / 1.056 GB, free: 9.953 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003331/0.2519, allocations: 237 kB / 1.056 GB, free: 9.723 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004262/0.2524, allocations: 410.4 kB / 1.057 GB, free: 9.246 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007945/0.2532, allocations: 0.6779 MB / 1.058 GB, free: 8.496 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.2532, allocations: 4 kB / 1.058 GB, free: 8.492 MB / 0.8106 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001536/0.2547, allocations: 0.9129 MB / 1.058 GB, free: 7.562 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.462e-05/0.2548, allocations: 8 kB / 1.058 GB, free: 7.555 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.314e-06/0.2548, allocations: 4.656 kB / 1.058 GB, free: 7.551 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007125/0.2555, allocations: 230.3 kB / 1.059 GB, free: 7.316 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004614/0.256, allocations: 115.8 kB / 1.059 GB, free: 7.203 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004315/0.2603, allocations: 4.943 MB / 1.064 GB, free: 1.855 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003611/0.2607, allocations: 31.97 kB / 1.064 GB, free: 1.824 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.441e-05/0.2607, allocations: 20 kB / 1.064 GB, free: 1.805 MB / 0.8106 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.0002266/0.2609, allocations: 229.6 kB / 1.064 GB, free: 1.57 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.881e-05/0.261, allocations: 55.34 kB / 1.064 GB, free: 1.516 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001411/0.2624, allocations: 0.7735 MB / 1.065 GB, free: 0.7227 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.599e-06/0.2624, allocations: 4 kB / 1.065 GB, free: 0.7188 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.689e-06/0.2625, allocations: 4 kB / 1.065 GB, free: 0.7148 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.901e-06/0.2625, allocations: 3.984 kB / 1.065 GB, free: 0.7109 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00215/0.2646, allocations: 1.502 MB / 1.066 GB, free: 15.12 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.268e-06/0.2646, allocations: 4 kB / 1.066 GB, free: 15.12 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003402/0.265, allocations: 59.95 kB / 1.066 GB, free: 15.06 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006182/0.2656, allocations: 214.4 kB / 1.066 GB, free: 14.84 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.725e-05/0.2656, allocations: 8 kB / 1.066 GB, free: 14.83 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004127/0.2698, allocations: 4.88 MB / 1.071 GB, free: 9.555 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.21e-06/0.2698, allocations: 11.88 kB / 1.071 GB, free: 9.543 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001587/0.2714, allocations: 1.131 MB / 1.072 GB, free: 8.363 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001766/0.2716, allocations: 168.4 kB / 1.072 GB, free: 8.18 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.906e-05/0.2716, allocations: 8 kB / 1.072 GB, free: 8.172 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002989/0.272, allocations: 23.97 kB / 1.073 GB, free: 8.148 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.218e-05/0.272, allocations: 47.89 kB / 1.073 GB, free: 8.102 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.193e-05/0.2721, allocations: 8 kB / 1.073 GB, free: 8.094 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0002833/0.2724, allocations: 314.9 kB / 1.073 GB, free: 7.789 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.5e-07/0.2724, allocations: 4 kB / 1.073 GB, free: 7.785 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0005211/0.2729, allocations: 164 kB / 1.073 GB, free: 7.625 MB / 0.8262 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.001865/0.2748, allocations: 1.699 MB / 1.075 GB, free: 5.867 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.001385/0.2762, allocations: 1.001 MB / 1.076 GB, free: 4.828 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.2762, allocations: 0 / 1.076 GB, free: 4.828 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0008613/0.277, allocations: 0.676 MB / 1.076 GB, free: 4.113 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009101/0.278, allocations: 170.3 kB / 1.076 GB, free: 3.945 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00695/0.2849, allocations: 5.961 MB / 1.082 GB, free: 13.7 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000456/0.2854, allocations: 0.9494 MB / 1.083 GB, free: 12.73 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0003155/0.2857, allocations: 113 kB / 1.083 GB, free: 12.62 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000256/0.286, allocations: 211.3 kB / 1.084 GB, free: 12.41 MB / 0.8419 GB Notification: Performance of SimCode: time 2.3e-07/0.286, allocations: 0 / 1.084 GB, free: 12.41 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.548/2.834, allocations: 13.26 MB / 1.096 GB, free: 15.43 MB / 0.8575 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002169/2.834, allocations: 240.4 kB / 1.097 GB, free: 15.18 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.833/4.667, allocations: 0 / 1.097 GB, free: 15.18 MB / 0.8575 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.AC.OnePhase.Lines.Examples.ACLine_RL_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_AC_OnePhase_Lines_Examples_ACLine_RL_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 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.mat","/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