Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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_latest_Buildings_Electrical_AC_OnePhase_Loads_Examples_VariableImpedance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance,fileNamePrefix="Buildings_latest_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.007872/0.007872, allocations: 105.1 kB / 15.74 MB, free: 6.02 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.002093/0.002094, allocations: 192 kB / 16.68 MB, free: 5.938 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.306/1.306, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.717/2.717, allocations: 482.6 MB / 0.755 GB, free: 6.641 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.00184/0.001841, allocations: 69.16 kB / 1.083 GB, free: 13.79 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2717/0.2736, allocations: 162.3 MB / 1.242 GB, free: 8.957 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance): time 0.005079/0.2787, allocations: 3.753 MB / 1.246 GB, free: 5.184 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.002742/0.2815, allocations: 1.789 MB / 1.247 GB, free: 3.387 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001869/0.2817, allocations: 19.88 kB / 1.247 GB, free: 3.367 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0007946/0.2825, allocations: 262.3 kB / 1.248 GB, free: 3.113 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0005828/0.2831, allocations: 294.5 kB / 1.248 GB, free: 2.824 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005098/0.2836, allocations: 255.4 kB / 1.248 GB, free: 2.574 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0006291/0.2842, allocations: 0.6011 MB / 1.249 GB, free: 1.973 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003991/0.2846, allocations: 250.5 kB / 1.249 GB, free: 1.723 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003055/0.285, allocations: 239.1 kB / 1.249 GB, free: 1.488 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003149/0.2853, allocations: 235 kB / 1.249 GB, free: 1.258 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 5.006e-05/0.2853, allocations: 28 kB / 1.249 GB, free: 1.23 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004297/0.2858, allocations: 279.4 kB / 1.25 GB, free: 0.957 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.0001284/0.2859, allocations: 115.6 kB / 1.25 GB, free: 0.8438 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0002029/0.2861, allocations: 214.8 kB / 1.25 GB, free: 0.6328 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0006649/0.2868, allocations: 0.5877 MB / 1.251 GB, free: 44 kB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 3.276e-06/0.2868, allocations: 0 / 1.251 GB, free: 44 kB / 0.9669 GB Notification: Performance of FrontEnd: time 1.172e-06/0.2868, allocations: 0 / 1.251 GB, free: 44 kB / 0.9669 GB Notification: Performance of Transformations before backend: time 7.133e-06/0.2868, allocations: 4 kB / 1.251 GB, free: 40 kB / 0.9669 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.001127/0.288, allocations: 0.7475 MB / 1.251 GB, free: 15.24 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.298e-05/0.288, allocations: 11.97 kB / 1.251 GB, free: 15.23 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.424e-05/0.2881, allocations: 74.64 kB / 1.251 GB, free: 15.14 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008314/0.2889, allocations: 144.5 kB / 1.251 GB, free: 15 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005458/0.2895, allocations: 407.9 kB / 1.252 GB, free: 14.57 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.412e-05/0.2895, allocations: 21.03 kB / 1.252 GB, free: 14.55 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.464e-05/0.2896, allocations: 32.38 kB / 1.252 GB, free: 14.52 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007993/0.2904, allocations: 0.5587 MB / 1.252 GB, free: 13.89 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.708e-05/0.2904, allocations: 7.875 kB / 1.252 GB, free: 13.88 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.561e-05/0.2904, allocations: 12 kB / 1.252 GB, free: 13.87 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.808e-05/0.2905, allocations: 40.55 kB / 1.253 GB, free: 13.83 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006996/0.2912, allocations: 409.7 kB / 1.253 GB, free: 13.43 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002857/0.2941, allocations: 3.334 MB / 1.256 GB, free: 9.844 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006517/0.2947, allocations: 342.4 kB / 1.256 GB, free: 9.5 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003017/0.2951, allocations: 176.7 kB / 1.257 GB, free: 9.324 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.433e-05/0.2951, allocations: 4 kB / 1.257 GB, free: 9.32 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.85e-05/0.2951, allocations: 42.55 kB / 1.257 GB, free: 9.27 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=26): time 1.493e-06/0.2951, allocations: 0 / 1.257 GB, free: 9.27 MB / 0.9825 GB Notification: Performance of matching and sorting (n=27): time 0.002014/0.2972, allocations: 1.068 MB / 1.258 GB, free: 8.133 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.886e-05/0.2972, allocations: 51.64 kB / 1.258 GB, free: 8.07 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003468/0.2976, allocations: 341.6 kB / 1.258 GB, free: 7.727 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.626e-05/0.2976, allocations: 29.7 kB / 1.258 GB, free: 7.691 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.000169/0.2978, allocations: 252.1 kB / 1.258 GB, free: 7.441 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 8.187e-05/0.2979, allocations: 99.16 kB / 1.258 GB, free: 7.344 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001198/0.298, allocations: 78.05 kB / 1.259 GB, free: 7.262 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.000152/0.2981, allocations: 346.8 kB / 1.259 GB, free: 6.914 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002733/0.2984, allocations: 152.8 kB / 1.259 GB, free: 6.766 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003772/0.2988, allocations: 290.5 kB / 1.259 GB, free: 6.414 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006752/0.2995, allocations: 482.6 kB / 1.26 GB, free: 5.879 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.2995, allocations: 0 / 1.26 GB, free: 5.879 MB / 0.9825 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0009785/0.3005, allocations: 0.5658 MB / 1.26 GB, free: 5.297 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.813e-05/0.3005, allocations: 8 kB / 1.26 GB, free: 5.289 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.845e-06/0.3005, allocations: 4 kB / 1.26 GB, free: 5.285 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002884/0.3008, allocations: 82.98 kB / 1.26 GB, free: 5.195 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000332/0.3012, allocations: 95.81 kB / 1.261 GB, free: 5.102 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.281e-05/0.3012, allocations: 11.94 kB / 1.261 GB, free: 5.09 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002494/0.3014, allocations: 27.97 kB / 1.261 GB, free: 5.062 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.778e-05/0.3015, allocations: 16 kB / 1.261 GB, free: 5.047 MB / 0.9825 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.0001859/0.3017, allocations: 177.6 kB / 1.261 GB, free: 4.863 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.648e-05/0.3017, allocations: 39.77 kB / 1.261 GB, free: 4.824 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009055/0.3026, allocations: 476.2 kB / 1.261 GB, free: 4.344 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.49e-06/0.3027, allocations: 4 kB / 1.261 GB, free: 4.34 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.33e-06/0.3027, allocations: 0 / 1.261 GB, free: 4.34 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.11e-06/0.3027, allocations: 3.984 kB / 1.261 GB, free: 4.336 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001495/0.3042, allocations: 0.963 MB / 1.262 GB, free: 3.301 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.314e-06/0.3042, allocations: 3.938 kB / 1.262 GB, free: 3.297 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002355/0.3044, allocations: 55.83 kB / 1.262 GB, free: 3.242 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002323/0.3047, allocations: 82.59 kB / 1.262 GB, free: 3.152 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.092e-05/0.3047, allocations: 12 kB / 1.262 GB, free: 3.141 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.245e-06/0.3047, allocations: 0 / 1.262 GB, free: 3.141 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.236e-06/0.3047, allocations: 7.938 kB / 1.262 GB, free: 3.133 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008646/0.3056, allocations: 0.5431 MB / 1.263 GB, free: 2.555 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001518/0.3058, allocations: 144.8 kB / 1.263 GB, free: 2.395 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.569e-05/0.3058, allocations: 4 kB / 1.263 GB, free: 2.391 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002155/0.306, allocations: 23.91 kB / 1.263 GB, free: 2.367 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.49e-05/0.3061, allocations: 19.97 kB / 1.263 GB, free: 2.348 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.654e-05/0.3061, allocations: 12 kB / 1.263 GB, free: 2.336 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0002395/0.3064, allocations: 231.2 kB / 1.263 GB, free: 2.109 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.31e-07/0.3064, allocations: 8 kB / 1.263 GB, free: 2.102 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003952/0.3068, allocations: 84 kB / 1.263 GB, free: 2.02 MB / 0.9825 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.001213/0.308, allocations: 1.096 MB / 1.264 GB, free: 0.875 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0009204/0.3089, allocations: 0.6355 MB / 1.265 GB, free: 180 kB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.235e-06/0.309, allocations: 0 / 1.265 GB, free: 180 kB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0005001/0.3095, allocations: 433.7 kB / 1.265 GB, free: 15.69 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000695/0.3102, allocations: 138.5 kB / 1.266 GB, free: 15.56 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004799/0.315, allocations: 3.731 MB / 1.269 GB, free: 11.59 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000448/0.3155, allocations: 0.8347 MB / 1.27 GB, free: 10.73 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0002572/0.3157, allocations: 75.36 kB / 1.27 GB, free: 10.66 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001744/0.3159, allocations: 127.4 kB / 1.27 GB, free: 10.53 MB / 0.9981 GB Notification: Performance of SimCode: time 7.11e-07/0.3159, allocations: 0 / 1.27 GB, free: 10.53 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.669/1.985, allocations: 8.313 MB / 1.278 GB, free: 2.465 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.06/21.05, allocations: 5.109 kB / 1.278 GB, free: 2.461 MB / 0.9981 GB (rm -f Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_AC_OnePhase_Loads_Examples_VariableImpedance_fmu --startTime=0 --stopTime=1 --timeout=400 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_AC_OnePhase_Loads_Examples_VariableImpedance.fmu > Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_OnePhase_Loads_Examples_VariableImpedance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches