Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_Buildings_Electrical_AC_OnePhase_Loads_Examples_VariableImpedance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance,fileNamePrefix="Buildings_9_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.001092/0.001092, allocations: 104 kB / 15.6 MB, free: 148 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00129/0.00129, allocations: 192.1 kB / 16.53 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.359/1.359, allocations: 222.9 MB / 240.2 MB, free: 4.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.347/2.347, allocations: 390.3 MB / 0.6647 GB, free: 452 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.00136/0.00136, allocations: 67.89 kB / 0.8127 GB, free: 14.36 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6845/0.6859, allocations: 140.4 MB / 0.9497 GB, free: 9.156 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance): time 0.004113/0.69, allocations: 3.749 MB / 0.9534 GB, free: 6.223 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.002199/0.6923, allocations: 1.802 MB / 0.9551 GB, free: 4.789 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001685/0.6924, allocations: 18.12 kB / 0.9552 GB, free: 4.781 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0007368/0.6932, allocations: 258.9 kB / 0.9554 GB, free: 4.582 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0004981/0.6937, allocations: 300.1 kB / 0.9557 GB, free: 4.348 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004269/0.6941, allocations: 244.2 kB / 0.9559 GB, free: 4.16 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0004495/0.6946, allocations: 0.6038 MB / 0.9565 GB, free: 3.809 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003441/0.6949, allocations: 258.6 kB / 0.9568 GB, free: 3.656 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000229/0.6952, allocations: 226.8 kB / 0.957 GB, free: 3.535 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002363/0.6954, allocations: 238 kB / 0.9572 GB, free: 3.387 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 4.781e-05/0.6955, allocations: 30.06 kB / 0.9572 GB, free: 3.383 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003853/0.6959, allocations: 274.7 kB / 0.9575 GB, free: 3.254 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0001156/0.696, allocations: 122.2 kB / 0.9576 GB, free: 3.172 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001767/0.6962, allocations: 214.1 kB / 0.9578 GB, free: 3.031 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0005116/0.6967, allocations: 0.5771 MB / 0.9584 GB, free: 2.648 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.949e-06/0.6967, allocations: 0 / 0.9584 GB, free: 2.648 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.553e-06/0.6967, allocations: 0 / 0.9584 GB, free: 2.648 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 1.25e-05/0.6967, allocations: 1.094 kB / 0.9584 GB, free: 2.648 MB / 0.7169 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.000942/0.6977, allocations: 0.7347 MB / 0.9591 GB, free: 2.016 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.408e-05/0.6977, allocations: 9.625 kB / 0.9591 GB, free: 2.016 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.321e-05/0.6978, allocations: 75.08 kB / 0.9592 GB, free: 1.945 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008294/0.6986, allocations: 133.8 kB / 0.9593 GB, free: 1.883 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004099/0.699, allocations: 379 kB / 0.9597 GB, free: 1.539 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.982e-05/0.6991, allocations: 28.27 kB / 0.9597 GB, free: 1.523 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.919e-05/0.6991, allocations: 28.41 kB / 0.9597 GB, free: 1.516 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006646/0.6998, allocations: 0.5439 MB / 0.9603 GB, free: 1.09 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.676e-05/0.6998, allocations: 6.406 kB / 0.9603 GB, free: 1.086 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.574e-05/0.6999, allocations: 16.86 kB / 0.9603 GB, free: 1.074 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.594e-05/0.6999, allocations: 45.59 kB / 0.9603 GB, free: 1.059 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006117/0.7005, allocations: 405.2 kB / 0.9607 GB, free: 0.8672 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002397/0.7029, allocations: 3.34 MB / 0.964 GB, free: 13.67 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000616/0.7036, allocations: 334 kB / 0.9643 GB, free: 13.49 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002894/0.7039, allocations: 182 kB / 0.9645 GB, free: 13.4 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.176e-05/0.7039, allocations: 2.188 kB / 0.9645 GB, free: 13.4 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.431e-05/0.7039, allocations: 41 kB / 0.9645 GB, free: 13.35 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=26): time 1.493e-06/0.7039, allocations: 0 / 0.9645 GB, free: 13.35 MB / 0.7325 GB Notification: Performance of matching and sorting (n=27): time 0.001973/0.7059, allocations: 1.062 MB / 0.9655 GB, free: 12.61 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.746e-05/0.706, allocations: 54.14 kB / 0.9656 GB, free: 12.55 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003208/0.7063, allocations: 343.4 kB / 0.9659 GB, free: 12.32 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.253e-05/0.7063, allocations: 30.8 kB / 0.966 GB, free: 12.29 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001409/0.7065, allocations: 242.5 kB / 0.9662 GB, free: 12.07 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 7.489e-05/0.7066, allocations: 98.73 kB / 0.9663 GB, free: 11.98 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001141/0.7067, allocations: 80.11 kB / 0.9664 GB, free: 11.93 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001196/0.7068, allocations: 347.7 kB / 0.9667 GB, free: 11.59 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002851/0.7071, allocations: 149.8 kB / 0.9668 GB, free: 11.52 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003501/0.7075, allocations: 294.7 kB / 0.9671 GB, free: 11.26 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006434/0.7081, allocations: 482.5 kB / 0.9676 GB, free: 10.9 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.756e-06/0.7081, allocations: 1.125 kB / 0.9676 GB, free: 10.9 MB / 0.7325 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001059/0.7092, allocations: 0.5606 MB / 0.9681 GB, free: 10.59 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.787e-05/0.7092, allocations: 10.52 kB / 0.9681 GB, free: 10.58 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.205e-06/0.7092, allocations: 5.656 kB / 0.9681 GB, free: 10.58 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002864/0.7095, allocations: 89.64 kB / 0.9682 GB, free: 10.52 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003322/0.7099, allocations: 84.12 kB / 0.9683 GB, free: 10.5 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.622e-05/0.7099, allocations: 14.91 kB / 0.9683 GB, free: 10.5 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000257/0.7101, allocations: 34.22 kB / 0.9683 GB, free: 10.48 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.091e-05/0.7102, allocations: 18.69 kB / 0.9684 GB, free: 10.47 MB / 0.7325 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.0001757/0.7104, allocations: 175.3 kB / 0.9685 GB, free: 10.32 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.695e-05/0.7104, allocations: 39.59 kB / 0.9686 GB, free: 10.3 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009754/0.7114, allocations: 466.3 kB / 0.969 GB, free: 10.01 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.169e-06/0.7114, allocations: 3.719 kB / 0.969 GB, free: 10.01 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.574e-06/0.7115, allocations: 1.219 kB / 0.969 GB, free: 10.01 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.917e-06/0.7115, allocations: 4 kB / 0.969 GB, free: 10.01 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001699/0.7132, allocations: 0.9602 MB / 0.97 GB, free: 9.289 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.278e-06/0.7132, allocations: 1.469 kB / 0.97 GB, free: 9.289 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003714/0.7136, allocations: 55.3 kB / 0.97 GB, free: 9.27 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003386/0.7139, allocations: 85.34 kB / 0.9701 GB, free: 9.211 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.745e-05/0.714, allocations: 5.219 kB / 0.9701 GB, free: 9.207 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.198e-06/0.714, allocations: 2.688 kB / 0.9701 GB, free: 9.207 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.434e-06/0.714, allocations: 1.312 kB / 0.9701 GB, free: 9.207 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001226/0.7152, allocations: 0.54 MB / 0.9706 GB, free: 8.832 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002095/0.7154, allocations: 141.7 kB / 0.9708 GB, free: 8.695 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.965e-05/0.7155, allocations: 11.38 kB / 0.9708 GB, free: 8.688 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003844/0.7159, allocations: 25.78 kB / 0.9708 GB, free: 8.672 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.917e-05/0.7161, allocations: 27.09 kB / 0.9708 GB, free: 8.656 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.839e-05/0.7161, allocations: 5.344 kB / 0.9708 GB, free: 8.656 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0003596/0.7165, allocations: 233.4 kB / 0.9711 GB, free: 8.504 MB / 0.7325 GB Notification: Performance of sort global known variables: time 4.61e-07/0.7165, allocations: 0 / 0.9711 GB, free: 8.504 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0007533/0.7172, allocations: 88.81 kB / 0.9711 GB, free: 8.492 MB / 0.7325 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.001813/0.7191, allocations: 1.085 MB / 0.9722 GB, free: 7.586 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.001115/0.7202, allocations: 0.6695 MB / 0.9729 GB, free: 7.082 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.905e-06/0.7202, allocations: 2.062 kB / 0.9729 GB, free: 7.082 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.000447/0.7207, allocations: 438.9 kB / 0.9733 GB, free: 6.688 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007611/0.7214, allocations: 130.9 kB / 0.9734 GB, free: 6.621 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005449/0.7269, allocations: 3.754 MB / 0.9771 GB, free: 3.793 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004144/0.7273, allocations: 0.8249 MB / 0.9779 GB, free: 3.027 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.000331/0.7277, allocations: 83.38 kB / 0.9779 GB, free: 2.984 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002174/0.7279, allocations: 129 kB / 0.9781 GB, free: 2.879 MB / 0.7325 GB Notification: Performance of SimCode: time 3.81e-07/0.7279, allocations: 3.938 kB / 0.9781 GB, free: 2.875 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02765/0.7556, allocations: 8.186 MB / 0.9861 GB, free: 11.52 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.881/9.637, allocations: 19.78 kB / 0.9861 GB, free: 11.5 MB / 0.7481 GB (rm -f Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance_res.mat --tempDir=temp_Buildings_9_Buildings_Electrical_AC_OnePhase_Loads_Examples_VariableImpedance_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Electrical_AC_OnePhase_Loads_Examples_VariableImpedance.fmu > Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_OnePhase_Loads_Examples_VariableImpedance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches