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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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: 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_9_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_9_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.001522/0.001522, allocations: 102.4 kB / 16.35 MB, free: 5.875 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.001659/0.001659, allocations: 191 kB / 17.29 MB, free: 5.516 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.54/1.54, allocations: 222.9 MB / 241 MB, free: 15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.329/2.329, allocations: 390.3 MB / 0.6655 GB, free: 0.5977 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.00165/0.00165, allocations: 62.58 kB / 0.814 GB, free: 32.56 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3747/0.3764, allocations: 140.4 MB / 0.9511 GB, free: 8.07 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance): time 0.006727/0.3832, allocations: 3.748 MB / 0.9548 GB, free: 4.309 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.003313/0.3865, allocations: 1.801 MB / 0.9565 GB, free: 2.5 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002603/0.3868, allocations: 19.88 kB / 0.9566 GB, free: 2.48 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0009385/0.3879, allocations: 254.7 kB / 0.9568 GB, free: 2.23 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.000729/0.3886, allocations: 298.4 kB / 0.9571 GB, free: 1.938 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006623/0.3893, allocations: 255.5 kB / 0.9573 GB, free: 1.688 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0007862/0.3901, allocations: 0.6049 MB / 0.9579 GB, free: 1.078 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000483/0.3906, allocations: 254.5 kB / 0.9582 GB, free: 0.8203 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003516/0.3909, allocations: 231.1 kB / 0.9584 GB, free: 0.5938 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003356/0.3913, allocations: 242.9 kB / 0.9586 GB, free: 364 kB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 4.321e-05/0.3913, allocations: 27.94 kB / 0.9587 GB, free: 336 kB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005459/0.3919, allocations: 275.4 kB / 0.9589 GB, free: 60 kB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.0001562/0.392, allocations: 119.8 kB / 0.959 GB, free: 15.94 MB / 0.7481 GB Notification: Performance of NFVerifyModel.verify: time 0.0002064/0.3922, allocations: 206.9 kB / 0.9592 GB, free: 15.73 MB / 0.7481 GB Notification: Performance of NFConvertDAE.convert: time 0.0006741/0.3929, allocations: 0.5877 MB / 0.9598 GB, free: 15.15 MB / 0.7481 GB Notification: Performance of FrontEnd - DAE generated: time 5.38e-06/0.3929, allocations: 0 / 0.9598 GB, free: 15.15 MB / 0.7481 GB Notification: Performance of FrontEnd: time 1.543e-06/0.393, allocations: 0 / 0.9598 GB, free: 15.15 MB / 0.7481 GB Notification: Performance of Transformations before backend: time 1.216e-05/0.393, allocations: 0 / 0.9598 GB, free: 15.15 MB / 0.7481 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.001183/0.3942, allocations: 0.7363 MB / 0.9605 GB, free: 14.36 MB / 0.7481 GB Notification: Performance of prepare preOptimizeDAE: time 4.05e-05/0.3942, allocations: 12.03 kB / 0.9605 GB, free: 14.35 MB / 0.7481 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008608/0.3951, allocations: 136.2 kB / 0.9607 GB, free: 14.22 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006072/0.3957, allocations: 411.5 kB / 0.9611 GB, free: 13.77 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.441e-05/0.3957, allocations: 21.03 kB / 0.9611 GB, free: 13.75 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.641e-05/0.3958, allocations: 28.36 kB / 0.9611 GB, free: 13.73 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008161/0.3966, allocations: 0.5549 MB / 0.9616 GB, free: 13.1 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.756e-05/0.3967, allocations: 3.938 kB / 0.9616 GB, free: 13.09 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.773e-05/0.3967, allocations: 15.98 kB / 0.9617 GB, free: 13.08 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.833e-05/0.3968, allocations: 40.55 kB / 0.9617 GB, free: 13.04 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006743/0.3974, allocations: 409.7 kB / 0.9621 GB, free: 12.64 MB / 0.7481 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002985/0.4004, allocations: 3.33 MB / 0.9653 GB, free: 9.059 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006477/0.4011, allocations: 338.5 kB / 0.9657 GB, free: 8.719 MB / 0.7481 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002903/0.4014, allocations: 180.8 kB / 0.9658 GB, free: 8.539 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 3.026e-05/0.4014, allocations: 3.938 kB / 0.9658 GB, free: 8.535 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.554e-05/0.4015, allocations: 42.44 kB / 0.9659 GB, free: 8.484 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=26): time 1.783e-06/0.4015, allocations: 0 / 0.9659 GB, free: 8.484 MB / 0.7481 GB Notification: Performance of matching and sorting (n=27): time 0.001992/0.4035, allocations: 1.062 MB / 0.9669 GB, free: 7.352 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.465e-05/0.4035, allocations: 55.64 kB / 0.967 GB, free: 7.285 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003407/0.4039, allocations: 337.5 kB / 0.9673 GB, free: 6.949 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 2.517e-05/0.4039, allocations: 33.7 kB / 0.9673 GB, free: 6.91 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001571/0.4041, allocations: 243.5 kB / 0.9676 GB, free: 6.668 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 7.847e-05/0.4042, allocations: 98.62 kB / 0.9677 GB, free: 6.57 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001099/0.4043, allocations: 78.05 kB / 0.9677 GB, free: 6.488 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001364/0.4044, allocations: 346.8 kB / 0.9681 GB, free: 6.141 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002665/0.4047, allocations: 144.8 kB / 0.9682 GB, free: 6 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003634/0.4051, allocations: 294.5 kB / 0.9685 GB, free: 5.645 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006566/0.4057, allocations: 474.6 kB / 0.9689 GB, free: 5.117 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.4057, allocations: 3.938 kB / 0.9689 GB, free: 5.113 MB / 0.7481 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0009552/0.4067, allocations: 0.5738 MB / 0.9695 GB, free: 4.523 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 2.841e-05/0.4067, allocations: 8 kB / 0.9695 GB, free: 4.516 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.004e-05/0.4068, allocations: 4 kB / 0.9695 GB, free: 4.512 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003158/0.4071, allocations: 90.45 kB / 0.9696 GB, free: 4.414 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003503/0.4074, allocations: 83.88 kB / 0.9697 GB, free: 4.332 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.453e-05/0.4075, allocations: 11.94 kB / 0.9697 GB, free: 4.32 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000266/0.4077, allocations: 31.91 kB / 0.9697 GB, free: 4.289 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.067e-05/0.4078, allocations: 24.03 kB / 0.9697 GB, free: 4.266 MB / 0.7481 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.0001908/0.408, allocations: 169.7 kB / 0.9699 GB, free: 4.09 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.721e-05/0.4081, allocations: 39.53 kB / 0.9699 GB, free: 4.051 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008561/0.4089, allocations: 468 kB / 0.9704 GB, free: 3.578 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.923e-06/0.4089, allocations: 8 kB / 0.9704 GB, free: 3.57 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.131e-06/0.4089, allocations: 0 / 0.9704 GB, free: 3.57 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.761e-06/0.409, allocations: 3.984 kB / 0.9704 GB, free: 3.566 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001437/0.4104, allocations: 0.9598 MB / 0.9713 GB, free: 2.531 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.956e-06/0.4104, allocations: 0 / 0.9713 GB, free: 2.531 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002305/0.4107, allocations: 51.95 kB / 0.9714 GB, free: 2.48 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000244/0.4109, allocations: 86.44 kB / 0.9715 GB, free: 2.387 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.199e-05/0.4109, allocations: 4 kB / 0.9715 GB, free: 2.383 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.25e-06/0.4109, allocations: 4 kB / 0.9715 GB, free: 2.379 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.411, allocations: 0 / 0.9715 GB, free: 2.379 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008073/0.4118, allocations: 0.5403 MB / 0.972 GB, free: 1.805 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001915/0.412, allocations: 144.5 kB / 0.9721 GB, free: 1.645 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.819e-05/0.412, allocations: 8 kB / 0.9721 GB, free: 1.637 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002139/0.4122, allocations: 23.97 kB / 0.9722 GB, free: 1.613 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.011e-05/0.4123, allocations: 27.91 kB / 0.9722 GB, free: 1.586 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.681e-05/0.4124, allocations: 4 kB / 0.9722 GB, free: 1.582 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0002289/0.4126, allocations: 235.2 kB / 0.9724 GB, free: 1.352 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.6e-07/0.4126, allocations: 3.938 kB / 0.9724 GB, free: 1.348 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0004418/0.413, allocations: 88 kB / 0.9725 GB, free: 1.262 MB / 0.7481 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.0001698/0.4132, allocations: 115.2 kB / 0.9726 GB, free: 1.141 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0008796/0.4141, allocations: 0.6315 MB / 0.9732 GB, free: 456 kB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.4141, allocations: 0 / 0.9732 GB, free: 456 kB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0004813/0.4146, allocations: 436.1 kB / 0.9736 GB, free: 15.96 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007104/0.4153, allocations: 127 kB / 0.9738 GB, free: 15.84 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001132/0.4165, allocations: 0.7268 MB / 0.9745 GB, free: 15.07 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004183/0.4169, allocations: 0.8234 MB / 0.9753 GB, free: 14.22 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.0002154/0.4171, allocations: 83.34 kB / 0.9754 GB, free: 14.14 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.939e-05/0.4172, allocations: 27.44 kB / 0.9754 GB, free: 14.12 MB / 0.7637 GB Notification: Performance of SimCode: time 5.01e-07/0.4172, allocations: 0 / 0.9754 GB, free: 14.12 MB / 0.7637 GB Notification: Performance of Templates: time 0.009489/0.4267, allocations: 4.67 MB / 0.9799 GB, free: 9.508 MB / 0.7637 GB make -j1 -f Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.makefile (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 & ./Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > 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