Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001427/0.001427, allocations: 104.2 kB / 16.45 MB, free: 6.449 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001486/0.001486, allocations: 210.4 kB / 19.43 MB, free: 3.637 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.522/1.522, allocations: 230.6 MB / 252.8 MB, free: 9.137 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.281/3.281, allocations: 0.49 GB / 0.7916 GB, free: 33.3 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance,fileNamePrefix="Buildings_12_Buildings_Electrical_AC_OnePhase_Loads_Examples_VariableImpedance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance,fileNamePrefix="Buildings_12_Buildings_Electrical_AC_OnePhase_Loads_Examples_VariableImpedance",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002179/0.002179, allocations: 70.56 kB / 1.149 GB, free: 26.37 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3238/0.326, allocations: 176.1 MB / 1.321 GB, free: 3.391 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance): time 0.006247/0.3322, allocations: 3.799 MB / 1.325 GB, free: 15.57 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.003495/0.3357, allocations: 1.847 MB / 1.326 GB, free: 13.71 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003171/0.336, allocations: 23.75 kB / 1.326 GB, free: 13.69 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0009878/0.337, allocations: 275.2 kB / 1.327 GB, free: 13.42 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0008275/0.3379, allocations: 306.4 kB / 1.327 GB, free: 13.12 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006485/0.3385, allocations: 257.6 kB / 1.327 GB, free: 12.87 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0008443/0.3394, allocations: 0.6088 MB / 1.328 GB, free: 12.26 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004477/0.3398, allocations: 214.8 kB / 1.328 GB, free: 12.04 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004964/0.3403, allocations: 243.1 kB / 1.328 GB, free: 11.8 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004271/0.3407, allocations: 246.9 kB / 1.328 GB, free: 11.56 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 7.629e-05/0.3408, allocations: 24 kB / 1.328 GB, free: 11.54 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005573/0.3414, allocations: 287.4 kB / 1.329 GB, free: 11.26 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.0001698/0.3415, allocations: 119.6 kB / 1.329 GB, free: 11.14 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0002893/0.3418, allocations: 210.9 kB / 1.329 GB, free: 10.93 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0009321/0.3428, allocations: 0.5913 MB / 1.33 GB, free: 10.34 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.3428, allocations: 4 kB / 1.33 GB, free: 10.34 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.293e-06/0.3428, allocations: 0 / 1.33 GB, free: 10.34 MB / 1.029 GB Notification: Performance of Transformations before backend: time 1.509e-05/0.3428, allocations: 0 / 1.33 GB, free: 10.34 MB / 1.029 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.001487/0.3443, allocations: 0.755 MB / 1.33 GB, free: 9.531 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.183e-05/0.3443, allocations: 15.98 kB / 1.33 GB, free: 9.516 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.499e-05/0.3444, allocations: 74.7 kB / 1.33 GB, free: 9.434 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009729/0.3454, allocations: 136.5 kB / 1.331 GB, free: 9.301 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006715/0.346, allocations: 407.9 kB / 1.331 GB, free: 8.859 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.083e-05/0.3461, allocations: 21.03 kB / 1.331 GB, free: 8.84 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.268e-05/0.3461, allocations: 32.36 kB / 1.331 GB, free: 8.809 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001049/0.3472, allocations: 0.5547 MB / 1.332 GB, free: 8.18 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.945e-05/0.3472, allocations: 0 / 1.332 GB, free: 8.18 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.284e-05/0.3472, allocations: 12 kB / 1.332 GB, free: 8.168 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.537e-05/0.3473, allocations: 44.53 kB / 1.332 GB, free: 8.125 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008296/0.3482, allocations: 409.7 kB / 1.332 GB, free: 7.727 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003599/0.3518, allocations: 3.349 MB / 1.335 GB, free: 4.125 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007581/0.3525, allocations: 312.8 kB / 1.336 GB, free: 3.812 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003238/0.3528, allocations: 160.8 kB / 1.336 GB, free: 3.652 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.487e-05/0.3529, allocations: 3.938 kB / 1.336 GB, free: 3.648 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.805e-05/0.3529, allocations: 42.5 kB / 1.336 GB, free: 3.598 MB / 1.029 GB Notification: Performance of pre-optimization done (n=26): time 1.724e-06/0.3529, allocations: 4 kB / 1.336 GB, free: 3.594 MB / 1.029 GB Notification: Performance of matching and sorting (n=27): time 0.002384/0.3553, allocations: 1.063 MB / 1.337 GB, free: 2.461 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.255e-05/0.3553, allocations: 51.64 kB / 1.337 GB, free: 2.398 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004543/0.3558, allocations: 345.6 kB / 1.337 GB, free: 2.051 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 4.766e-05/0.3558, allocations: 29.7 kB / 1.337 GB, free: 2.016 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002065/0.356, allocations: 248.2 kB / 1.337 GB, free: 1.77 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 9.888e-05/0.3561, allocations: 103.1 kB / 1.338 GB, free: 1.668 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001472/0.3563, allocations: 78.08 kB / 1.338 GB, free: 1.582 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001979/0.3565, allocations: 350.8 kB / 1.338 GB, free: 1.23 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003398/0.3568, allocations: 148.8 kB / 1.338 GB, free: 1.086 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004466/0.3573, allocations: 298.5 kB / 1.338 GB, free: 0.7305 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008171/0.3581, allocations: 478.3 kB / 1.339 GB, free: 204 kB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.386e-06/0.3581, allocations: 0 / 1.339 GB, free: 204 kB / 1.029 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001263/0.3593, allocations: 0.5619 MB / 1.339 GB, free: 15.62 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 2.845e-05/0.3594, allocations: 4 kB / 1.339 GB, free: 15.61 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.648e-05/0.3594, allocations: 8 kB / 1.339 GB, free: 15.61 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004219/0.3598, allocations: 91 kB / 1.339 GB, free: 15.51 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004062/0.3602, allocations: 91.88 kB / 1.34 GB, free: 15.42 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.799e-05/0.3602, allocations: 11.88 kB / 1.34 GB, free: 15.41 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003474/0.3606, allocations: 35.91 kB / 1.34 GB, free: 15.37 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.499e-05/0.3606, allocations: 12 kB / 1.34 GB, free: 15.36 MB / 1.045 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.0002475/0.3609, allocations: 172 kB / 1.34 GB, free: 15.18 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.521e-05/0.361, allocations: 47.75 kB / 1.34 GB, free: 15.14 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00102/0.362, allocations: 460.5 kB / 1.34 GB, free: 14.67 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.214e-06/0.362, allocations: 7.938 kB / 1.34 GB, free: 14.66 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.256e-06/0.362, allocations: 0 / 1.34 GB, free: 14.66 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.348e-06/0.362, allocations: 0 / 1.34 GB, free: 14.66 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001765/0.3638, allocations: 0.9656 MB / 1.341 GB, free: 13.63 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.679e-06/0.3638, allocations: 0 / 1.341 GB, free: 13.63 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000271/0.364, allocations: 47.95 kB / 1.341 GB, free: 13.58 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002989/0.3643, allocations: 94.53 kB / 1.341 GB, free: 13.48 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.704e-05/0.3644, allocations: 0 / 1.341 GB, free: 13.48 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.424e-06/0.3644, allocations: 4 kB / 1.341 GB, free: 13.48 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.325e-06/0.3644, allocations: 0 / 1.341 GB, free: 13.48 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00106/0.3654, allocations: 0.5431 MB / 1.342 GB, free: 12.9 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002314/0.3657, allocations: 136.8 kB / 1.342 GB, free: 12.75 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.587e-05/0.3657, allocations: 11.92 kB / 1.342 GB, free: 12.73 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002512/0.366, allocations: 23.92 kB / 1.342 GB, free: 12.71 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.052e-05/0.3661, allocations: 35.83 kB / 1.342 GB, free: 12.68 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.773e-05/0.3661, allocations: 4 kB / 1.342 GB, free: 12.67 MB / 1.045 GB Notification: Performance of sorting global known variables: time 0.0002893/0.3664, allocations: 239.2 kB / 1.342 GB, free: 12.44 MB / 1.045 GB Notification: Performance of sort global known variables: time 9e-08/0.3664, allocations: 3.938 kB / 1.342 GB, free: 12.43 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0004823/0.3669, allocations: 88 kB / 1.342 GB, free: 12.35 MB / 1.045 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.001443/0.3683, allocations: 1.092 MB / 1.343 GB, free: 11.21 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.001097/0.3694, allocations: 0.6115 MB / 1.344 GB, free: 10.53 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.3694, allocations: 0 / 1.344 GB, free: 10.53 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.0005589/0.37, allocations: 425.1 kB / 1.344 GB, free: 10.05 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008158/0.3708, allocations: 130.6 kB / 1.345 GB, free: 9.934 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005803/0.3766, allocations: 3.72 MB / 1.348 GB, free: 5.973 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005426/0.3771, allocations: 0.8307 MB / 1.349 GB, free: 5.113 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 0.0002882/0.3774, allocations: 79.36 kB / 1.349 GB, free: 5.035 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002086/0.3776, allocations: 131.4 kB / 1.349 GB, free: 4.906 MB / 1.045 GB Notification: Performance of SimCode: time 1.192e-06/0.3776, allocations: 3.938 kB / 1.349 GB, free: 4.902 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03806/0.4157, allocations: 8.356 MB / 1.357 GB, free: 12.77 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.72/11.14, allocations: 14.22 kB / 1.357 GB, free: 12.76 MB / 1.061 GB " [Timeout remaining time 289] (rm -f Buildings_12_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe ; mkfifo Buildings_12_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe ; head -c 1048576 < Buildings_12_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe >> ../files/Buildings_12_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance_res.mat --tempDir=temp_Buildings_12_Buildings_Electrical_AC_OnePhase_Loads_Examples_VariableImpedance_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Electrical_AC_OnePhase_Loads_Examples_VariableImpedance.fmu > Buildings_12_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Electrical_AC_OnePhase_Loads_Examples_VariableImpedance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 17.841065400047228]