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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.001679/0.001679, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001901/0.001901, allocations: 194.6 kB / 16.53 MB, free: 6.664 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.28/1.28, allocations: 222.9 MB / 240.2 MB, free: 4.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.625/2.625, allocations: 469.4 MB / 0.742 GB, free: 7.711 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001207/0.001207, allocations: 66.41 kB / 0.9083 GB, free: 34.46 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2449/0.2461, allocations: 159.1 MB / 1.064 GB, free: 14.51 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance): time 0.004893/0.251, allocations: 3.754 MB / 1.067 GB, free: 10.73 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.002657/0.2537, allocations: 1.781 MB / 1.069 GB, free: 8.945 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002249/0.254, allocations: 19.88 kB / 1.069 GB, free: 8.926 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0008169/0.2548, allocations: 274.6 kB / 1.069 GB, free: 8.656 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0005967/0.2554, allocations: 290.4 kB / 1.07 GB, free: 8.371 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005194/0.2559, allocations: 253.7 kB / 1.07 GB, free: 8.125 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0005776/0.2565, allocations: 0.6049 MB / 1.07 GB, free: 7.52 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003886/0.2569, allocations: 258.6 kB / 1.071 GB, free: 7.262 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003044/0.2572, allocations: 227.1 kB / 1.071 GB, free: 7.039 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002919/0.2575, allocations: 239 kB / 1.071 GB, free: 6.805 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 5.065e-05/0.2576, allocations: 28 kB / 1.071 GB, free: 6.777 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004188/0.258, allocations: 271.4 kB / 1.071 GB, free: 6.512 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001262/0.2581, allocations: 119.6 kB / 1.072 GB, free: 6.395 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001853/0.2583, allocations: 210.8 kB / 1.072 GB, free: 6.188 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0005855/0.2589, allocations: 0.5843 MB / 1.072 GB, free: 5.602 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 7.875e-06/0.2589, allocations: 7.984 kB / 1.072 GB, free: 5.594 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.132e-06/0.259, allocations: 0 / 1.072 GB, free: 5.594 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 8.856e-06/0.259, allocations: 0 / 1.072 GB, free: 5.594 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.001044/0.26, allocations: 0.7206 MB / 1.073 GB, free: 4.824 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.244e-05/0.2601, allocations: 16.03 kB / 1.073 GB, free: 4.809 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.076e-05/0.2601, allocations: 70.72 kB / 1.073 GB, free: 4.73 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008698/0.261, allocations: 136.2 kB / 1.073 GB, free: 4.598 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004685/0.2615, allocations: 375.6 kB / 1.074 GB, free: 4.191 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.084e-05/0.2615, allocations: 21.03 kB / 1.074 GB, free: 4.172 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.921e-05/0.2616, allocations: 32.36 kB / 1.074 GB, free: 4.141 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000785/0.2624, allocations: 0.5586 MB / 1.074 GB, free: 3.516 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.072e-05/0.2624, allocations: 11.94 kB / 1.074 GB, free: 3.504 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.668e-05/0.2624, allocations: 15.98 kB / 1.074 GB, free: 3.488 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.964e-05/0.2625, allocations: 40.53 kB / 1.074 GB, free: 3.449 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006988/0.2632, allocations: 409.8 kB / 1.075 GB, free: 3.047 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002705/0.2659, allocations: 3.333 MB / 1.078 GB, free: 15.46 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006523/0.2666, allocations: 339.6 kB / 1.078 GB, free: 15.12 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003017/0.2669, allocations: 178.5 kB / 1.078 GB, free: 14.95 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 2.169e-05/0.2669, allocations: 11.88 kB / 1.078 GB, free: 14.94 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.007e-05/0.267, allocations: 30.56 kB / 1.078 GB, free: 14.9 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=26): time 1.533e-06/0.267, allocations: 0 / 1.078 GB, free: 14.9 MB / 0.8419 GB Notification: Performance of matching and sorting (n=27): time 0.001993/0.269, allocations: 1.068 MB / 1.08 GB, free: 13.76 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.413e-05/0.269, allocations: 55.64 kB / 1.08 GB, free: 13.69 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003252/0.2694, allocations: 337.6 kB / 1.08 GB, free: 13.36 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 2.668e-05/0.2694, allocations: 33.7 kB / 1.08 GB, free: 13.32 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001479/0.2695, allocations: 243.5 kB / 1.08 GB, free: 13.07 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 6.996e-05/0.2696, allocations: 98.64 kB / 1.08 GB, free: 12.98 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001039/0.2697, allocations: 74.05 kB / 1.08 GB, free: 12.9 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001148/0.2698, allocations: 346.8 kB / 1.081 GB, free: 12.55 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002758/0.2701, allocations: 144.8 kB / 1.081 GB, free: 12.41 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003445/0.2705, allocations: 294.5 kB / 1.081 GB, free: 12.06 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006558/0.2711, allocations: 482.2 kB / 1.082 GB, free: 11.52 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.767e-06/0.2712, allocations: 8 kB / 1.082 GB, free: 11.52 MB / 0.8419 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001033/0.2722, allocations: 0.566 MB / 1.082 GB, free: 10.93 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.981e-05/0.2722, allocations: 8 kB / 1.082 GB, free: 10.93 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.366e-06/0.2722, allocations: 4 kB / 1.082 GB, free: 10.92 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003043/0.2726, allocations: 82.52 kB / 1.082 GB, free: 10.83 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003424/0.2729, allocations: 91.81 kB / 1.082 GB, free: 10.74 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.419e-05/0.2729, allocations: 16.17 kB / 1.082 GB, free: 10.73 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002515/0.2732, allocations: 23.98 kB / 1.082 GB, free: 10.7 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.932e-05/0.2732, allocations: 23.98 kB / 1.082 GB, free: 10.68 MB / 0.8419 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.0001667/0.2734, allocations: 173.6 kB / 1.082 GB, free: 10.5 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.74e-05/0.2735, allocations: 39.53 kB / 1.083 GB, free: 10.46 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008392/0.2743, allocations: 464 kB / 1.083 GB, free: 9.992 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.009e-06/0.2743, allocations: 4 kB / 1.083 GB, free: 9.988 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.701e-06/0.2743, allocations: 0 / 1.083 GB, free: 9.988 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.169e-06/0.2744, allocations: 3.984 kB / 1.083 GB, free: 9.984 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001337/0.2757, allocations: 0.9688 MB / 1.084 GB, free: 8.941 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.958e-06/0.2757, allocations: 3.984 kB / 1.084 GB, free: 8.938 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002364/0.276, allocations: 47.91 kB / 1.084 GB, free: 8.891 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000223/0.2762, allocations: 82.5 kB / 1.084 GB, free: 8.801 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.984e-05/0.2762, allocations: 4 kB / 1.084 GB, free: 8.797 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.479e-06/0.2762, allocations: 8.094 kB / 1.084 GB, free: 8.789 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.334e-06/0.2762, allocations: 0 / 1.084 GB, free: 8.789 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007745/0.277, allocations: 0.5583 MB / 1.085 GB, free: 8.195 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001298/0.2772, allocations: 132.6 kB / 1.085 GB, free: 8.047 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.065e-05/0.2772, allocations: 8 kB / 1.085 GB, free: 8.039 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002246/0.2774, allocations: 23.91 kB / 1.085 GB, free: 8.016 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.61e-05/0.2775, allocations: 23.97 kB / 1.085 GB, free: 7.992 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.588e-05/0.2775, allocations: 8 kB / 1.085 GB, free: 7.984 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0002092/0.2777, allocations: 239.1 kB / 1.085 GB, free: 7.75 MB / 0.8419 GB Notification: Performance of sort global known variables: time 2.3e-07/0.2778, allocations: 0 / 1.085 GB, free: 7.75 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0004043/0.2782, allocations: 95.98 kB / 1.085 GB, free: 7.656 MB / 0.8419 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.001026/0.2792, allocations: 1.089 MB / 1.086 GB, free: 6.52 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0008651/0.2801, allocations: 0.6708 MB / 1.087 GB, free: 5.785 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 4.288e-06/0.2801, allocations: 0 / 1.087 GB, free: 5.785 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0004223/0.2805, allocations: 437.6 kB / 1.087 GB, free: 5.293 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006903/0.2812, allocations: 120.5 kB / 1.087 GB, free: 5.176 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004375/0.2856, allocations: 3.741 MB / 1.091 GB, free: 1.195 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003261/0.2859, allocations: 0.8192 MB / 1.092 GB, free: 360 kB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0002587/0.2862, allocations: 79.34 kB / 1.092 GB, free: 280 kB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001631/0.2864, allocations: 139.3 kB / 1.092 GB, free: 144 kB / 0.8419 GB Notification: Performance of SimCode: time 2.6e-07/0.2864, allocations: 0 / 1.092 GB, free: 144 kB / 0.8419 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0243/0.3107, allocations: 8.203 MB / 1.1 GB, free: 8.16 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.084/9.395, allocations: 0.75 kB / 1.1 GB, free: 8.16 MB / 0.8575 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 & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 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.csv","/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