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: translateModel(Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Z_L.i.1.|Z_L.i.2.|Z_C.i.1.|Z_C.i.2.|Z_R.i.1.|Z_R.i.2.",fileNamePrefix="Buildings_10_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance") translateModel(Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Z_L.i.1.|Z_L.i.2.|Z_C.i.1.|Z_C.i.2.|Z_R.i.1.|Z_R.i.2.",fileNamePrefix="Buildings_10_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005674/0.005674, allocations: 100.7 kB / 15.87 MB, free: 5.867 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.001542/0.001542, allocations: 191.3 kB / 16.79 MB, free: 5.809 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.361/1.361, allocations: 222.9 MB / 240.5 MB, free: 4.574 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.594/2.594, allocations: 437 MB / 0.7106 GB, free: 5.293 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001328/0.001329, allocations: 59.91 kB / 0.8692 GB, free: 5.156 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7652/0.7666, allocations: 151.6 MB / 1.017 GB, free: 2.777 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance): time 0.00509/0.7717, allocations: 3.786 MB / 1.021 GB, free: 14.98 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.002793/0.7745, allocations: 1.801 MB / 1.023 GB, free: 13.17 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001731/0.7747, allocations: 19.88 kB / 1.023 GB, free: 13.15 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.000763/0.7755, allocations: 243 kB / 1.023 GB, free: 12.91 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0005269/0.7761, allocations: 270.7 kB / 1.023 GB, free: 12.64 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004881/0.7766, allocations: 231.3 kB / 1.023 GB, free: 12.42 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0006618/0.7772, allocations: 0.7452 MB / 1.024 GB, free: 11.67 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004382/0.7777, allocations: 249.9 kB / 1.024 GB, free: 11.42 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002734/0.778, allocations: 207.1 kB / 1.025 GB, free: 11.22 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002859/0.7782, allocations: 235 kB / 1.025 GB, free: 10.99 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 4.188e-05/0.7783, allocations: 20 kB / 1.025 GB, free: 10.97 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005158/0.7788, allocations: 343.3 kB / 1.025 GB, free: 10.63 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001271/0.779, allocations: 111.6 kB / 1.025 GB, free: 10.52 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.000197/0.7792, allocations: 202.8 kB / 1.026 GB, free: 10.32 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0004615/0.7796, allocations: 456.8 kB / 1.026 GB, free: 9.879 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/0.7796, allocations: 0 / 1.026 GB, free: 9.879 MB / 0.7794 GB Notification: Performance of FrontEnd: time 8.01e-07/0.7797, allocations: 4 kB / 1.026 GB, free: 9.875 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 9.127e-06/0.7797, allocations: 0 / 1.026 GB, free: 9.875 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.001143/0.7808, allocations: 0.7285 MB / 1.027 GB, free: 9.098 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.847e-05/0.7809, allocations: 8.031 kB / 1.027 GB, free: 9.09 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008876/0.7818, allocations: 140.2 kB / 1.027 GB, free: 8.953 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004989/0.7823, allocations: 379.5 kB / 1.027 GB, free: 8.543 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.067e-05/0.7823, allocations: 21.03 kB / 1.027 GB, free: 8.523 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.989e-05/0.7824, allocations: 28.36 kB / 1.027 GB, free: 8.496 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008432/0.7832, allocations: 0.5595 MB / 1.028 GB, free: 7.863 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.922e-05/0.7832, allocations: 0 / 1.028 GB, free: 7.863 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.863e-05/0.7833, allocations: 12 kB / 1.028 GB, free: 7.852 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.814e-05/0.7834, allocations: 44.53 kB / 1.028 GB, free: 7.809 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007196/0.7841, allocations: 409.7 kB / 1.028 GB, free: 7.41 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002925/0.787, allocations: 3.341 MB / 1.031 GB, free: 3.816 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007189/0.7878, allocations: 334.4 kB / 1.032 GB, free: 3.48 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002997/0.7881, allocations: 184.7 kB / 1.032 GB, free: 3.297 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.852e-05/0.7881, allocations: 7.984 kB / 1.032 GB, free: 3.289 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.16e-05/0.7881, allocations: 30.56 kB / 1.032 GB, free: 3.25 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=26): time 1.543e-06/0.7882, allocations: 4 kB / 1.032 GB, free: 3.246 MB / 0.7794 GB Notification: Performance of matching and sorting (n=27): time 0.002086/0.7902, allocations: 1.057 MB / 1.033 GB, free: 2.121 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.208e-05/0.7903, allocations: 55.64 kB / 1.033 GB, free: 2.055 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003335/0.7906, allocations: 341.5 kB / 1.033 GB, free: 1.715 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.781e-05/0.7907, allocations: 29.7 kB / 1.033 GB, free: 1.68 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001668/0.7908, allocations: 247.6 kB / 1.034 GB, free: 1.434 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 7.142e-05/0.7909, allocations: 102.5 kB / 1.034 GB, free: 1.332 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001121/0.7911, allocations: 74.05 kB / 1.034 GB, free: 1.254 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001445/0.7912, allocations: 354.7 kB / 1.034 GB, free: 0.8984 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002769/0.7915, allocations: 148.8 kB / 1.034 GB, free: 0.7539 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003735/0.7919, allocations: 286.5 kB / 1.035 GB, free: 416 kB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007051/0.7926, allocations: 483.9 kB / 1.035 GB, free: 15.87 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.983e-06/0.7926, allocations: 0 / 1.035 GB, free: 15.87 MB / 0.795 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0009877/0.7936, allocations: 0.5621 MB / 1.036 GB, free: 15.29 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 2.023e-05/0.7936, allocations: 8.062 kB / 1.036 GB, free: 15.29 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.317e-06/0.7936, allocations: 8 kB / 1.036 GB, free: 15.28 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003192/0.794, allocations: 94.44 kB / 1.036 GB, free: 15.18 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003427/0.7943, allocations: 79.89 kB / 1.036 GB, free: 15.1 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.58e-05/0.7943, allocations: 11.92 kB / 1.036 GB, free: 15.09 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002547/0.7946, allocations: 35.91 kB / 1.036 GB, free: 15.05 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.055e-05/0.7946, allocations: 20 kB / 1.036 GB, free: 15.03 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.0001913/0.7948, allocations: 168.3 kB / 1.036 GB, free: 14.86 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.717e-05/0.7949, allocations: 43.52 kB / 1.036 GB, free: 14.82 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008804/0.7958, allocations: 479.9 kB / 1.037 GB, free: 14.33 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.396e-06/0.7958, allocations: 0 / 1.037 GB, free: 14.33 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.154e-06/0.7958, allocations: 4 kB / 1.037 GB, free: 14.33 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.141e-06/0.7958, allocations: 0 / 1.037 GB, free: 14.33 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001454/0.7973, allocations: 0.9559 MB / 1.037 GB, free: 13.3 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.208e-06/0.7973, allocations: 8.031 kB / 1.037 GB, free: 13.29 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002397/0.7976, allocations: 55.89 kB / 1.038 GB, free: 13.23 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002434/0.7978, allocations: 74.52 kB / 1.038 GB, free: 13.15 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.2e-05/0.7978, allocations: 8 kB / 1.038 GB, free: 13.14 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.976e-06/0.7978, allocations: 0 / 1.038 GB, free: 13.14 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/0.7979, allocations: 4 kB / 1.038 GB, free: 13.14 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008371/0.7987, allocations: 0.5394 MB / 1.038 GB, free: 12.57 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001437/0.7988, allocations: 140.6 kB / 1.038 GB, free: 12.41 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.244e-05/0.7989, allocations: 8 kB / 1.038 GB, free: 12.4 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002271/0.7991, allocations: 23.97 kB / 1.038 GB, free: 12.38 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.209e-05/0.7992, allocations: 31.77 kB / 1.038 GB, free: 12.35 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.894e-05/0.7993, allocations: 12 kB / 1.038 GB, free: 12.34 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0002301/0.7995, allocations: 235.2 kB / 1.039 GB, free: 12.11 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.21e-07/0.7995, allocations: 0 / 1.039 GB, free: 12.11 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0004111/0.7999, allocations: 84 kB / 1.039 GB, free: 12.02 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.0001516/0.8001, allocations: 107.2 kB / 1.039 GB, free: 11.91 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0008848/0.801, allocations: 0.6317 MB / 1.039 GB, free: 11.21 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.801, allocations: 0 / 1.039 GB, free: 11.21 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0004557/0.8014, allocations: 437.6 kB / 1.04 GB, free: 10.72 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006788/0.8021, allocations: 112.3 kB / 1.04 GB, free: 10.62 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001197/0.8033, allocations: 0.9233 MB / 1.041 GB, free: 9.652 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004182/0.8038, allocations: 0.8274 MB / 1.042 GB, free: 8.801 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001001/0.8039, allocations: 31.44 kB / 1.042 GB, free: 8.773 MB / 0.795 GB Notification: Performance of SimCode: time 2.4e-07/0.8039, allocations: 0 / 1.042 GB, free: 8.773 MB / 0.795 GB Notification: Performance of Templates: time 0.01201/0.8159, allocations: 9.421 MB / 1.051 GB, free: 15.38 MB / 0.8106 GB make -j1 -f Buildings_10_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.makefile (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 & ./Buildings_10_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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