Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.VariableImpedance,fileNamePrefix="Buildings_10_Buildings_Electrical_AC_OnePhase_Loads_Examples_VariableImpedance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance,fileNamePrefix="Buildings_10_Buildings_Electrical_AC_OnePhase_Loads_Examples_VariableImpedance",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.001076/0.001076, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001365/0.001365, allocations: 198.4 kB / 16.14 MB, free: 6.648 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.219/1.219, allocations: 222.9 MB / 239.8 MB, free: 4.52 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.264/2.264, allocations: 437 MB / 0.71 GB, free: 5.324 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001156/0.001156, allocations: 67.89 kB / 0.8687 GB, free: 5.07 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4618/0.4629, allocations: 151.6 MB / 1.017 GB, free: 2.762 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance): time 0.004294/0.4673, allocations: 3.786 MB / 1.02 GB, free: 14.96 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.002205/0.4695, allocations: 1.812 MB / 1.022 GB, free: 13.14 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001304/0.4696, allocations: 15.88 kB / 1.022 GB, free: 13.12 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0006517/0.4703, allocations: 239 kB / 1.022 GB, free: 12.89 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0004237/0.4707, allocations: 278.7 kB / 1.023 GB, free: 12.62 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003857/0.4711, allocations: 224.7 kB / 1.023 GB, free: 12.4 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0005528/0.4717, allocations: 0.7375 MB / 1.024 GB, free: 11.66 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003626/0.472, allocations: 241.9 kB / 1.024 GB, free: 11.41 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002315/0.4723, allocations: 219 kB / 1.024 GB, free: 11.2 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002429/0.4725, allocations: 239 kB / 1.024 GB, free: 10.96 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 3.649e-05/0.4726, allocations: 16 kB / 1.024 GB, free: 10.95 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004049/0.473, allocations: 339.3 kB / 1.025 GB, free: 10.62 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001102/0.4731, allocations: 119.6 kB / 1.025 GB, free: 10.5 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.000165/0.4733, allocations: 194.9 kB / 1.025 GB, free: 10.31 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0005281/0.4738, allocations: 0.6016 MB / 1.026 GB, free: 9.707 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.126e-06/0.4738, allocations: 0 / 1.026 GB, free: 9.707 MB / 0.7794 GB Notification: Performance of FrontEnd: time 7.02e-07/0.4738, allocations: 0 / 1.026 GB, free: 9.707 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 5.24e-06/0.4738, allocations: 0 / 1.026 GB, free: 9.707 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: 85 * Number of variables: 85 Notification: Performance of Generate backend data structure: time 0.0009247/0.4748, allocations: 0.7324 MB / 1.026 GB, free: 8.926 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.009e-05/0.4748, allocations: 8.031 kB / 1.026 GB, free: 8.918 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.583e-05/0.4749, allocations: 78.64 kB / 1.026 GB, free: 8.832 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007932/0.4757, allocations: 136.1 kB / 1.026 GB, free: 8.699 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003953/0.4761, allocations: 379.6 kB / 1.027 GB, free: 8.289 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.732e-05/0.4761, allocations: 25.03 kB / 1.027 GB, free: 8.266 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.746e-05/0.4762, allocations: 28.36 kB / 1.027 GB, free: 8.238 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007027/0.4769, allocations: 0.5509 MB / 1.027 GB, free: 7.613 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.387e-05/0.4769, allocations: 7.938 kB / 1.027 GB, free: 7.605 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.103e-05/0.4769, allocations: 15.98 kB / 1.027 GB, free: 7.59 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.419e-05/0.477, allocations: 44.53 kB / 1.027 GB, free: 7.547 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006272/0.4776, allocations: 409.7 kB / 1.028 GB, free: 7.148 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002339/0.48, allocations: 3.337 MB / 1.031 GB, free: 3.559 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005608/0.4805, allocations: 339 kB / 1.031 GB, free: 3.219 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002642/0.4808, allocations: 172.8 kB / 1.032 GB, free: 3.047 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.116e-05/0.4808, allocations: 4 kB / 1.032 GB, free: 3.043 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.815e-05/0.4809, allocations: 38.56 kB / 1.032 GB, free: 2.996 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=26): time 1.282e-06/0.4809, allocations: 0 / 1.032 GB, free: 2.996 MB / 0.7794 GB Notification: Performance of matching and sorting (n=27): time 0.001741/0.4826, allocations: 1.06 MB / 1.033 GB, free: 1.867 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.918e-05/0.4826, allocations: 55.64 kB / 1.033 GB, free: 1.801 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002881/0.4829, allocations: 345.5 kB / 1.033 GB, free: 1.457 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.632e-05/0.483, allocations: 29.7 kB / 1.033 GB, free: 1.422 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001277/0.4831, allocations: 247.5 kB / 1.033 GB, free: 1.176 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 6.866e-05/0.4832, allocations: 98.58 kB / 1.033 GB, free: 1.078 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.667e-05/0.4833, allocations: 78.05 kB / 1.034 GB, free: 0.9961 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001064/0.4834, allocations: 342.8 kB / 1.034 GB, free: 0.6523 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002525/0.4837, allocations: 152.8 kB / 1.034 GB, free: 0.5039 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003686/0.484, allocations: 290.5 kB / 1.034 GB, free: 156 kB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006273/0.4847, allocations: 484.8 kB / 1.035 GB, free: 15.61 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.4847, allocations: 0 / 1.035 GB, free: 15.61 MB / 0.795 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0008871/0.4856, allocations: 0.5657 MB / 1.035 GB, free: 15.03 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.244e-05/0.4856, allocations: 4 kB / 1.035 GB, free: 15.03 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.404e-05/0.4856, allocations: 8 kB / 1.035 GB, free: 15.02 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002569/0.4859, allocations: 83.08 kB / 1.035 GB, free: 14.93 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000301/0.4862, allocations: 99.81 kB / 1.035 GB, free: 14.83 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.037e-05/0.4862, allocations: 7.938 kB / 1.035 GB, free: 14.82 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002281/0.4864, allocations: 31.97 kB / 1.035 GB, free: 14.79 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.047e-05/0.4865, allocations: 19.98 kB / 1.036 GB, free: 14.77 MB / 0.795 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * 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 (45): * Single equations (assignments): 42 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 3 systems {(2,100.0%), (2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001517/0.4866, allocations: 178.2 kB / 1.036 GB, free: 14.59 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.499e-05/0.4867, allocations: 39.53 kB / 1.036 GB, free: 14.55 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007829/0.4875, allocations: 467.9 kB / 1.036 GB, free: 14.08 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.745e-06/0.4875, allocations: 0 / 1.036 GB, free: 14.08 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.012e-06/0.4875, allocations: 4 kB / 1.036 GB, free: 14.07 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.939e-06/0.4875, allocations: 3.984 kB / 1.036 GB, free: 14.07 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001251/0.4888, allocations: 0.9598 MB / 1.037 GB, free: 13.04 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.4888, allocations: 0 / 1.037 GB, free: 13.04 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002126/0.489, allocations: 47.91 kB / 1.037 GB, free: 12.99 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002256/0.4893, allocations: 86.59 kB / 1.037 GB, free: 12.9 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.141e-05/0.4893, allocations: 8 kB / 1.037 GB, free: 12.89 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.134e-06/0.4893, allocations: 0 / 1.037 GB, free: 12.89 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.125e-06/0.4893, allocations: 7.938 kB / 1.037 GB, free: 12.88 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007352/0.49, allocations: 0.5389 MB / 1.038 GB, free: 12.31 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001337/0.4902, allocations: 136.6 kB / 1.038 GB, free: 12.16 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.538e-05/0.4902, allocations: 8 kB / 1.038 GB, free: 12.15 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002035/0.4904, allocations: 23.91 kB / 1.038 GB, free: 12.12 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.257e-05/0.4905, allocations: 27.91 kB / 1.038 GB, free: 12.1 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.756e-05/0.4905, allocations: 12 kB / 1.038 GB, free: 12.09 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0002142/0.4908, allocations: 239.2 kB / 1.038 GB, free: 11.85 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4908, allocations: 3.938 kB / 1.038 GB, free: 11.85 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0003679/0.4911, allocations: 84 kB / 1.038 GB, free: 11.77 MB / 0.795 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 simulation (25): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 3 systems {(2,100.0%), (2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0009985/0.4921, allocations: 1.096 MB / 1.039 GB, free: 10.62 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0007634/0.4929, allocations: 0.6264 MB / 1.04 GB, free: 9.934 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.4929, allocations: 1.25 kB / 1.04 GB, free: 9.934 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0004254/0.4934, allocations: 435.6 kB / 1.04 GB, free: 9.445 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006007/0.494, allocations: 127.2 kB / 1.041 GB, free: 9.328 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00417/0.4982, allocations: 3.883 MB / 1.044 GB, free: 5.207 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000316/0.4985, allocations: 0.8192 MB / 1.045 GB, free: 4.363 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.0002246/0.4987, allocations: 83.34 kB / 1.045 GB, free: 4.281 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001535/0.4989, allocations: 127.4 kB / 1.045 GB, free: 4.156 MB / 0.795 GB Notification: Performance of SimCode: time 3.01e-07/0.4989, allocations: 0 / 1.045 GB, free: 4.156 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.373/3.872, allocations: 7.889 MB / 1.053 GB, free: 12.48 MB / 0.8106 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002163/3.872, allocations: 244.7 kB / 1.053 GB, free: 12.22 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.814/5.686, allocations: 0 / 1.053 GB, free: 12.22 MB / 0.8106 GB (rm -f Buildings_10_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe ; mkfifo Buildings_10_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe >> ../files/Buildings_10_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance_res.mat --tempDir=temp_Buildings_10_Buildings_Electrical_AC_OnePhase_Loads_Examples_VariableImpedance_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Electrical_AC_OnePhase_Loads_Examples_VariableImpedance.fmu > Buildings_10_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_AC_OnePhase_Loads_Examples_VariableImpedance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches