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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.001235/0.001235, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001305/0.001305, allocations: 193.2 kB / 16.14 MB, free: 6.652 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.248/1.248, allocations: 222.9 MB / 239.8 MB, free: 4.598 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.453/2.453, allocations: 461.8 MB / 0.7342 GB, free: 14.18 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001355/0.001355, allocations: 62.36 kB / 0.8985 GB, free: 37.03 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2377/0.239, allocations: 157.4 MB / 1.052 GB, free: 8.188 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance): time 0.004861/0.2439, allocations: 3.792 MB / 1.056 GB, free: 4.375 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.00266/0.2466, allocations: 1.805 MB / 1.058 GB, free: 2.562 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002701/0.2469, allocations: 15.88 kB / 1.058 GB, free: 2.547 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.000747/0.2477, allocations: 247 kB / 1.058 GB, free: 2.305 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0006012/0.2483, allocations: 274.7 kB / 1.058 GB, free: 2.035 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.000498/0.2488, allocations: 234.4 kB / 1.058 GB, free: 1.809 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0006868/0.2495, allocations: 0.7414 MB / 1.059 GB, free: 1.066 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000426/0.2499, allocations: 249.8 kB / 1.059 GB, free: 0.8203 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003108/0.2502, allocations: 207.1 kB / 1.06 GB, free: 0.6172 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000293/0.2505, allocations: 235 kB / 1.06 GB, free: 396 kB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 4.467e-05/0.2506, allocations: 20 kB / 1.06 GB, free: 376 kB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004987/0.2511, allocations: 347.3 kB / 1.06 GB, free: 28 kB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0001285/0.2512, allocations: 107.6 kB / 1.06 GB, free: 15.92 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001791/0.2514, allocations: 206.8 kB / 1.06 GB, free: 15.72 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0005918/0.252, allocations: 0.5881 MB / 1.061 GB, free: 15.13 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.497e-06/0.252, allocations: 0 / 1.061 GB, free: 15.13 MB / 0.8262 GB Notification: Performance of FrontEnd: time 7.71e-07/0.252, allocations: 0 / 1.061 GB, free: 15.13 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 8.085e-06/0.252, allocations: 0 / 1.061 GB, free: 15.13 MB / 0.8262 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.001047/0.2531, allocations: 0.7363 MB / 1.062 GB, free: 14.34 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.583e-05/0.2531, allocations: 11.97 kB / 1.062 GB, free: 14.33 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.064e-05/0.2532, allocations: 70.7 kB / 1.062 GB, free: 14.25 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00082/0.254, allocations: 140.1 kB / 1.062 GB, free: 14.12 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000424/0.2545, allocations: 375.7 kB / 1.062 GB, free: 13.71 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.102e-05/0.2545, allocations: 25.02 kB / 1.062 GB, free: 13.68 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.066e-05/0.2546, allocations: 28.38 kB / 1.062 GB, free: 13.66 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000716/0.2553, allocations: 0.5547 MB / 1.063 GB, free: 13.02 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.884e-05/0.2553, allocations: 11.92 kB / 1.063 GB, free: 13.01 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.33e-05/0.2553, allocations: 12 kB / 1.063 GB, free: 13 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.768e-05/0.2554, allocations: 40.55 kB / 1.063 GB, free: 12.96 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006503/0.2561, allocations: 409.7 kB / 1.063 GB, free: 12.56 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002406/0.2585, allocations: 3.333 MB / 1.067 GB, free: 8.977 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005822/0.2591, allocations: 334.5 kB / 1.067 GB, free: 8.641 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002681/0.2594, allocations: 176.7 kB / 1.067 GB, free: 8.465 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.232e-05/0.2594, allocations: 7.938 kB / 1.067 GB, free: 8.457 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.079e-05/0.2594, allocations: 34.56 kB / 1.067 GB, free: 8.414 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=26): time 1.302e-06/0.2594, allocations: 4 kB / 1.067 GB, free: 8.41 MB / 0.8262 GB Notification: Performance of matching and sorting (n=27): time 0.001798/0.2612, allocations: 1.065 MB / 1.068 GB, free: 7.273 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.698e-05/0.2613, allocations: 55.64 kB / 1.068 GB, free: 7.207 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002817/0.2615, allocations: 341.5 kB / 1.069 GB, free: 6.863 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.267e-05/0.2616, allocations: 33.7 kB / 1.069 GB, free: 6.824 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001335/0.2617, allocations: 243.5 kB / 1.069 GB, free: 6.582 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 6.377e-05/0.2618, allocations: 94.64 kB / 1.069 GB, free: 6.488 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.598e-05/0.2619, allocations: 78.05 kB / 1.069 GB, free: 6.406 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001056/0.262, allocations: 346.8 kB / 1.069 GB, free: 6.059 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002489/0.2622, allocations: 148.8 kB / 1.069 GB, free: 5.914 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003173/0.2626, allocations: 290.5 kB / 1.07 GB, free: 5.57 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005827/0.2632, allocations: 482.3 kB / 1.07 GB, free: 5.035 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.176e-06/0.2632, allocations: 4 kB / 1.07 GB, free: 5.031 MB / 0.8262 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0008794/0.2641, allocations: 0.5657 MB / 1.071 GB, free: 4.449 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.645e-05/0.2641, allocations: 8 kB / 1.071 GB, free: 4.441 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.264e-06/0.2641, allocations: 4 kB / 1.071 GB, free: 4.438 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000273/0.2644, allocations: 87.08 kB / 1.071 GB, free: 4.344 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003192/0.2647, allocations: 91.81 kB / 1.071 GB, free: 4.254 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.187e-05/0.2647, allocations: 11.94 kB / 1.071 GB, free: 4.242 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002427/0.265, allocations: 31.97 kB / 1.071 GB, free: 4.211 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.572e-05/0.265, allocations: 16 kB / 1.071 GB, free: 4.195 MB / 0.8262 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.0001598/0.2652, allocations: 181.6 kB / 1.071 GB, free: 4.008 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.023e-05/0.2652, allocations: 43.53 kB / 1.071 GB, free: 3.965 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007742/0.266, allocations: 460 kB / 1.072 GB, free: 3.5 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.49e-06/0.266, allocations: 4 kB / 1.072 GB, free: 3.496 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.01e-06/0.266, allocations: 0 / 1.072 GB, free: 3.496 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.759e-06/0.266, allocations: 3.984 kB / 1.072 GB, free: 3.492 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001261/0.2673, allocations: 0.9677 MB / 1.073 GB, free: 2.453 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.385e-06/0.2673, allocations: 3.938 kB / 1.073 GB, free: 2.449 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002221/0.2676, allocations: 47.95 kB / 1.073 GB, free: 2.402 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002276/0.2678, allocations: 90.59 kB / 1.073 GB, free: 2.305 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.147e-05/0.2678, allocations: 8 kB / 1.073 GB, free: 2.297 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.325e-06/0.2678, allocations: 3.938 kB / 1.073 GB, free: 2.293 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.374e-06/0.2678, allocations: 0 / 1.073 GB, free: 2.293 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007312/0.2686, allocations: 0.5467 MB / 1.073 GB, free: 1.711 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001234/0.2687, allocations: 132.7 kB / 1.073 GB, free: 1.562 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.938e-05/0.2688, allocations: 11.91 kB / 1.073 GB, free: 1.551 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002167/0.269, allocations: 19.91 kB / 1.073 GB, free: 1.531 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.08e-05/0.269, allocations: 23.97 kB / 1.073 GB, free: 1.508 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.673e-05/0.2691, allocations: 19.94 kB / 1.073 GB, free: 1.488 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001909/0.2693, allocations: 231.2 kB / 1.074 GB, free: 1.266 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.51e-07/0.2693, allocations: 0 / 1.074 GB, free: 1.266 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003709/0.2696, allocations: 84 kB / 1.074 GB, free: 1.184 MB / 0.8262 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.0009916/0.2706, allocations: 1.092 MB / 1.075 GB, free: 44 kB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0008217/0.2715, allocations: 0.6305 MB / 1.075 GB, free: 15.35 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 4.168e-06/0.2715, allocations: 4 kB / 1.075 GB, free: 15.34 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.000418/0.2719, allocations: 434.8 kB / 1.076 GB, free: 14.86 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006574/0.2726, allocations: 123.9 kB / 1.076 GB, free: 14.74 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004549/0.2771, allocations: 3.885 MB / 1.08 GB, free: 10.61 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003842/0.2775, allocations: 0.827 MB / 1.081 GB, free: 9.758 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0002508/0.2778, allocations: 83.3 kB / 1.081 GB, free: 9.676 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001853/0.278, allocations: 123.4 kB / 1.081 GB, free: 9.555 MB / 0.8419 GB Notification: Performance of SimCode: time 4.11e-07/0.278, allocations: 3.938 kB / 1.081 GB, free: 9.551 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01819/0.2962, allocations: 7.895 MB / 1.089 GB, free: 1.895 MB / 0.8419 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002165/0.2964, allocations: 246.8 kB / 1.089 GB, free: 1.641 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.668/1.964, allocations: 0 / 1.089 GB, free: 1.641 MB / 0.8419 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=50 --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