Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.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.OnePhase.Loads.Examples.DynamicLoads,fileNamePrefix="Buildings_10_Buildings_Electrical_AC_OnePhase_Loads_Examples_DynamicLoads",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads,fileNamePrefix="Buildings_10_Buildings_Electrical_AC_OnePhase_Loads_Examples_DynamicLoads",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.001077/0.001077, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001098/0.001098, allocations: 197.6 kB / 16.25 MB, free: 6.625 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.242/1.242, allocations: 222.9 MB / 239.9 MB, free: 4.438 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.405/2.405, allocations: 437 MB / 0.7101 GB, free: 5.148 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0014/0.0014, allocations: 67.89 kB / 0.8689 GB, free: 4.926 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5512/0.5527, allocations: 151.6 MB / 1.017 GB, free: 2.66 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads): time 0.00499/0.5577, allocations: 3.313 MB / 1.02 GB, free: 15.34 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.003013/0.5607, allocations: 2.003 MB / 1.022 GB, free: 13.32 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001989/0.561, allocations: 7.875 kB / 1.022 GB, free: 13.31 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0008928/0.5619, allocations: 274.6 kB / 1.022 GB, free: 13.05 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0005615/0.5625, allocations: 223.1 kB / 1.023 GB, free: 12.83 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006635/0.5631, allocations: 259.4 kB / 1.023 GB, free: 12.57 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0004775/0.5636, allocations: 414.7 kB / 1.023 GB, free: 12.17 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004121/0.564, allocations: 228.2 kB / 1.023 GB, free: 11.94 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002496/0.5643, allocations: 159.4 kB / 1.024 GB, free: 11.79 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003669/0.5647, allocations: 203.3 kB / 1.024 GB, free: 11.59 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 5.66e-05/0.5647, allocations: 24 kB / 1.024 GB, free: 11.56 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004236/0.5652, allocations: 263.5 kB / 1.024 GB, free: 11.3 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001324/0.5653, allocations: 119.7 kB / 1.024 GB, free: 11.19 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001508/0.5655, allocations: 147.2 kB / 1.024 GB, free: 11.04 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0005904/0.5661, allocations: 0.493 MB / 1.025 GB, free: 10.55 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 5.15e-06/0.5661, allocations: 3.984 kB / 1.025 GB, free: 10.55 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.283e-06/0.5661, allocations: 4 kB / 1.025 GB, free: 10.54 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 7.203e-06/0.5661, allocations: 0 / 1.025 GB, free: 10.54 MB / 0.7794 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 68 * Number of variables: 68 Notification: Performance of Generate backend data structure: time 0.001082/0.5672, allocations: 0.5965 MB / 1.025 GB, free: 9.898 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.681e-05/0.5672, allocations: 8.031 kB / 1.025 GB, free: 9.891 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.099e-05/0.5673, allocations: 62.72 kB / 1.025 GB, free: 9.82 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009556/0.5683, allocations: 120.4 kB / 1.026 GB, free: 9.703 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003074/0.5686, allocations: 273.7 kB / 1.026 GB, free: 9.395 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.878e-05/0.5686, allocations: 20.92 kB / 1.026 GB, free: 9.375 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001234/0.5688, allocations: 36.41 kB / 1.026 GB, free: 9.34 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006681/0.5694, allocations: 461.1 kB / 1.026 GB, free: 8.855 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.74e-05/0.5695, allocations: 7.984 kB / 1.026 GB, free: 8.848 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.55e-05/0.5695, allocations: 12 kB / 1.026 GB, free: 8.836 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001378/0.5696, allocations: 40.53 kB / 1.026 GB, free: 8.797 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005846/0.5702, allocations: 357.9 kB / 1.027 GB, free: 8.445 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002338/0.5726, allocations: 2.234 MB / 1.029 GB, free: 6.016 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000405/0.573, allocations: 272.3 kB / 1.029 GB, free: 5.742 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001998/0.5732, allocations: 156.8 kB / 1.029 GB, free: 5.586 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.352e-05/0.5732, allocations: 7.984 kB / 1.029 GB, free: 5.578 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.653e-05/0.5733, allocations: 42.55 kB / 1.029 GB, free: 5.527 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=22): time 1.573e-06/0.5733, allocations: 0 / 1.029 GB, free: 5.527 MB / 0.7794 GB Notification: Performance of matching and sorting (n=23): time 0.001667/0.575, allocations: 1.051 MB / 1.03 GB, free: 4.41 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.111e-05/0.575, allocations: 59.41 kB / 1.03 GB, free: 4.34 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002826/0.5753, allocations: 253 kB / 1.031 GB, free: 4.082 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.345e-05/0.5753, allocations: 25.7 kB / 1.031 GB, free: 4.051 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001002/0.5754, allocations: 191.9 kB / 1.031 GB, free: 3.859 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 6.204e-05/0.5755, allocations: 82.81 kB / 1.031 GB, free: 3.777 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001231/0.5756, allocations: 77.58 kB / 1.031 GB, free: 3.695 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 9.759e-05/0.5757, allocations: 330.8 kB / 1.031 GB, free: 3.363 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002678/0.576, allocations: 159.9 kB / 1.032 GB, free: 3.207 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003037/0.5763, allocations: 249.4 kB / 1.032 GB, free: 2.93 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005244/0.5769, allocations: 418.8 kB / 1.032 GB, free: 2.488 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.005e-06/0.5769, allocations: 3.938 kB / 1.032 GB, free: 2.484 MB / 0.7794 GB Notification: Performance of matching and sorting (n=43) (initialization): time 0.001127/0.578, allocations: 0.5964 MB / 1.033 GB, free: 1.879 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.516e-05/0.578, allocations: 4 kB / 1.033 GB, free: 1.875 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.197e-06/0.578, allocations: 4 kB / 1.033 GB, free: 1.871 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006759/0.5787, allocations: 188.9 kB / 1.033 GB, free: 1.684 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000308/0.579, allocations: 67.89 kB / 1.033 GB, free: 1.617 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002678/0.5817, allocations: 2.5 MB / 1.035 GB, free: 14.98 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003864/0.5821, allocations: 19.98 kB / 1.035 GB, free: 14.96 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.028e-05/0.5822, allocations: 15.98 kB / 1.035 GB, free: 14.94 MB / 0.795 GB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (32): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,10,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001685/0.5823, allocations: 170.2 kB / 1.036 GB, free: 14.77 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.124e-05/0.5824, allocations: 27.78 kB / 1.036 GB, free: 14.74 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005081/0.5829, allocations: 349.2 kB / 1.036 GB, free: 14.39 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.15e-06/0.5829, allocations: 8 kB / 1.036 GB, free: 14.39 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.716e-06/0.5829, allocations: 112 / 1.036 GB, free: 14.39 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.066e-06/0.5829, allocations: 3.938 kB / 1.036 GB, free: 14.38 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000987/0.5839, allocations: 0.8181 MB / 1.037 GB, free: 13.5 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.415e-06/0.584, allocations: 0 / 1.037 GB, free: 13.5 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003895/0.5843, allocations: 76 kB / 1.037 GB, free: 13.43 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.899e-06/0.5844, allocations: 4 kB / 1.037 GB, free: 13.43 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.305e-05/0.5844, allocations: 4 kB / 1.037 GB, free: 13.42 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.174e-06/0.5844, allocations: 3.938 kB / 1.037 GB, free: 13.42 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.5844, allocations: 0 / 1.037 GB, free: 13.42 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006952/0.5851, allocations: 0.6147 MB / 1.037 GB, free: 12.78 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001184/0.5852, allocations: 132.8 kB / 1.038 GB, free: 12.63 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.707e-05/0.5853, allocations: 8 kB / 1.038 GB, free: 12.62 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002483/0.5855, allocations: 15.98 kB / 1.038 GB, free: 12.61 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.955e-05/0.5856, allocations: 27.78 kB / 1.038 GB, free: 12.58 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.72e-05/0.5856, allocations: 8 kB / 1.038 GB, free: 12.57 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0002045/0.5858, allocations: 188.5 kB / 1.038 GB, free: 12.39 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.1e-07/0.5858, allocations: 0 / 1.038 GB, free: 12.39 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0004226/0.5863, allocations: 84 kB / 1.038 GB, free: 12.31 MB / 0.795 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (dynRC.q[1],dynRC.q[2],dynRL.psi[1],dynRL.psi[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 (24): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009563/0.5872, allocations: 1.157 MB / 1.039 GB, free: 11.12 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0009239/0.5882, allocations: 0.5723 MB / 1.04 GB, free: 10.54 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.5882, allocations: 0 / 1.04 GB, free: 10.54 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0001913/0.5884, allocations: 148.6 kB / 1.04 GB, free: 10.39 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004386/0.5888, allocations: 52.03 kB / 1.04 GB, free: 10.34 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0049/0.5937, allocations: 3.795 MB / 1.044 GB, free: 6.387 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003173/0.5941, allocations: 0.799 MB / 1.044 GB, free: 5.562 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0002416/0.5943, allocations: 78.92 kB / 1.044 GB, free: 5.488 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001445/0.5945, allocations: 83.41 kB / 1.044 GB, free: 5.406 MB / 0.795 GB Notification: Performance of SimCode: time 2.61e-07/0.5945, allocations: 0 / 1.044 GB, free: 5.406 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02203/0.6165, allocations: 6.739 MB / 1.051 GB, free: 14.85 MB / 0.8106 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001896/0.6167, allocations: 241.2 kB / 1.051 GB, free: 14.59 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.838/2.455, allocations: 64 / 1.051 GB, free: 14.59 MB / 0.8106 GB (rm -f Buildings_10_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.pipe ; mkfifo Buildings_10_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.pipe >> ../files/Buildings_10_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads_res.mat --tempDir=temp_Buildings_10_Buildings_Electrical_AC_OnePhase_Loads_Examples_DynamicLoads_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Electrical_AC_OnePhase_Loads_Examples_DynamicLoads.fmu > Buildings_10_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_AC_OnePhase_Loads_Examples_DynamicLoads.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches