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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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: "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_OnePhase_Loads_Examples_VariableImpedance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance,fileNamePrefix="Buildings_9_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.001748/0.001748, allocations: 108 kB / 15.6 MB, free: 132 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.002125/0.002125, allocations: 195.2 kB / 16.53 MB, free: 6.391 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.387/1.387, allocations: 222.9 MB / 240.2 MB, free: 4.438 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.37/2.37, allocations: 390.2 MB / 0.6647 GB, free: 452 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001279/0.001279, allocations: 67.88 kB / 0.8127 GB, free: 14.37 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5972/0.5985, allocations: 140.4 MB / 0.9497 GB, free: 9.184 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance): time 0.004192/0.6027, allocations: 3.745 MB / 0.9534 GB, free: 6.254 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.00217/0.6049, allocations: 1.803 MB / 0.9551 GB, free: 4.82 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001578/0.6051, allocations: 17.97 kB / 0.9552 GB, free: 4.812 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0007237/0.6058, allocations: 255.4 kB / 0.9554 GB, free: 4.617 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0004524/0.6063, allocations: 299 kB / 0.9557 GB, free: 4.383 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004223/0.6067, allocations: 252.2 kB / 0.9559 GB, free: 4.191 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0004543/0.6072, allocations: 0.6045 MB / 0.9565 GB, free: 3.84 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003462/0.6075, allocations: 253.3 kB / 0.9568 GB, free: 3.691 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002538/0.6078, allocations: 228 kB / 0.957 GB, free: 3.57 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002443/0.6081, allocations: 234.4 kB / 0.9572 GB, free: 3.426 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 4.586e-05/0.6081, allocations: 30.06 kB / 0.9572 GB, free: 3.422 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003657/0.6085, allocations: 282.3 kB / 0.9575 GB, free: 3.285 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0001099/0.6086, allocations: 122 kB / 0.9576 GB, free: 3.203 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001692/0.6088, allocations: 209.2 kB / 0.9578 GB, free: 3.066 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0005574/0.6093, allocations: 0.5818 MB / 0.9584 GB, free: 2.68 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.299e-06/0.6094, allocations: 0 / 0.9584 GB, free: 2.68 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.713e-06/0.6094, allocations: 0 / 0.9584 GB, free: 2.68 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 1.005e-05/0.6094, allocations: 1.125 kB / 0.9584 GB, free: 2.68 MB / 0.7169 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.0009692/0.6103, allocations: 0.7364 MB / 0.9591 GB, free: 2.047 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.612e-05/0.6104, allocations: 9.5 kB / 0.9591 GB, free: 2.047 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.008e-05/0.6105, allocations: 75.59 kB / 0.9592 GB, free: 1.977 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008285/0.6113, allocations: 133.3 kB / 0.9593 GB, free: 1.914 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003831/0.6117, allocations: 379 kB / 0.9597 GB, free: 1.57 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.227e-05/0.6117, allocations: 28.38 kB / 0.9597 GB, free: 1.555 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.955e-05/0.6118, allocations: 31.56 kB / 0.9597 GB, free: 1.543 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006781/0.6125, allocations: 0.5485 MB / 0.9603 GB, free: 1.113 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.72e-05/0.6125, allocations: 6.875 kB / 0.9603 GB, free: 1.109 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.578e-05/0.6125, allocations: 15.98 kB / 0.9603 GB, free: 1.098 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.419e-05/0.6126, allocations: 46.25 kB / 0.9603 GB, free: 1.082 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000664/0.6133, allocations: 408.8 kB / 0.9607 GB, free: 0.8867 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002695/0.616, allocations: 3.336 MB / 0.964 GB, free: 13.69 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000686/0.6167, allocations: 329.6 kB / 0.9643 GB, free: 13.52 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003134/0.617, allocations: 178.1 kB / 0.9645 GB, free: 13.43 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.376e-05/0.617, allocations: 2.25 kB / 0.9645 GB, free: 13.43 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.146e-05/0.6171, allocations: 44.25 kB / 0.9645 GB, free: 13.38 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=26): time 2.154e-06/0.6171, allocations: 1.062 kB / 0.9645 GB, free: 13.38 MB / 0.7325 GB Notification: Performance of matching and sorting (n=27): time 0.002045/0.6191, allocations: 1.058 MB / 0.9655 GB, free: 12.64 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.182e-05/0.6192, allocations: 54.17 kB / 0.9656 GB, free: 12.58 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003193/0.6195, allocations: 343.7 kB / 0.9659 GB, free: 12.36 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.474e-05/0.6195, allocations: 30.77 kB / 0.966 GB, free: 12.32 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001528/0.6197, allocations: 246.7 kB / 0.9662 GB, free: 12.09 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 7.407e-05/0.6198, allocations: 94.59 kB / 0.9663 GB, free: 12.01 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001207/0.6199, allocations: 77.45 kB / 0.9664 GB, free: 11.96 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001175/0.62, allocations: 350.3 kB / 0.9667 GB, free: 11.62 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002858/0.6203, allocations: 150.2 kB / 0.9668 GB, free: 11.55 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003613/0.6207, allocations: 294.3 kB / 0.9671 GB, free: 11.29 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006639/0.6214, allocations: 482.1 kB / 0.9676 GB, free: 10.93 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.865e-06/0.6214, allocations: 2.219 kB / 0.9676 GB, free: 10.93 MB / 0.7325 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0009738/0.6224, allocations: 0.5598 MB / 0.9681 GB, free: 10.62 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.676e-05/0.6224, allocations: 7.75 kB / 0.9681 GB, free: 10.62 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.746e-06/0.6224, allocations: 4.625 kB / 0.9681 GB, free: 10.62 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002981/0.6227, allocations: 94.34 kB / 0.9682 GB, free: 10.55 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003391/0.6231, allocations: 83.52 kB / 0.9683 GB, free: 10.54 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.636e-05/0.6231, allocations: 14.98 kB / 0.9683 GB, free: 10.53 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002831/0.6234, allocations: 33.97 kB / 0.9683 GB, free: 10.51 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.18e-05/0.6234, allocations: 18.41 kB / 0.9684 GB, free: 10.5 MB / 0.7325 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.0001856/0.6236, allocations: 176.4 kB / 0.9685 GB, free: 10.35 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.046e-05/0.6237, allocations: 42.44 kB / 0.9686 GB, free: 10.32 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008617/0.6246, allocations: 467.5 kB / 0.969 GB, free: 10.04 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.234e-06/0.6246, allocations: 7.391 kB / 0.969 GB, free: 10.04 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.402e-06/0.6246, allocations: 1.344 kB / 0.969 GB, free: 10.04 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.697e-06/0.6246, allocations: 0 / 0.969 GB, free: 10.04 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001379/0.626, allocations: 0.9622 MB / 0.97 GB, free: 9.312 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.908e-06/0.626, allocations: 1.844 kB / 0.97 GB, free: 9.312 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002375/0.6262, allocations: 47.03 kB / 0.97 GB, free: 9.301 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002396/0.6265, allocations: 89.41 kB / 0.9701 GB, free: 9.238 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.269e-05/0.6265, allocations: 6.375 kB / 0.9701 GB, free: 9.234 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.597e-06/0.6265, allocations: 1.469 kB / 0.9701 GB, free: 9.234 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.998e-06/0.6265, allocations: 5.281 kB / 0.9701 GB, free: 9.23 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007973/0.6273, allocations: 0.5406 MB / 0.9706 GB, free: 8.855 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000147/0.6275, allocations: 138.3 kB / 0.9708 GB, free: 8.723 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.486e-05/0.6276, allocations: 6.969 kB / 0.9708 GB, free: 8.719 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002243/0.6278, allocations: 25.78 kB / 0.9708 GB, free: 8.703 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.11e-05/0.6279, allocations: 23.09 kB / 0.9708 GB, free: 8.691 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.86e-05/0.6279, allocations: 9.562 kB / 0.9708 GB, free: 8.688 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0002581/0.6281, allocations: 237.1 kB / 0.9711 GB, free: 8.531 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.21e-07/0.6282, allocations: 1.406 kB / 0.9711 GB, free: 8.531 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0004337/0.6286, allocations: 84.19 kB / 0.9711 GB, free: 8.523 MB / 0.7325 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.001068/0.6297, allocations: 1.088 MB / 0.9722 GB, free: 7.613 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0009095/0.6306, allocations: 0.6674 MB / 0.9729 GB, free: 7.113 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.6306, allocations: 0 / 0.9729 GB, free: 7.113 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0004372/0.631, allocations: 433 kB / 0.9733 GB, free: 6.723 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006989/0.6318, allocations: 128.1 kB / 0.9734 GB, free: 6.656 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004463/0.6362, allocations: 3.757 MB / 0.9771 GB, free: 3.824 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003452/0.6366, allocations: 0.8218 MB / 0.9779 GB, free: 3.062 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0002751/0.6369, allocations: 87.58 kB / 0.9779 GB, free: 3.016 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001716/0.637, allocations: 120.2 kB / 0.9781 GB, free: 2.918 MB / 0.7325 GB Notification: Performance of SimCode: time 3.1e-07/0.6371, allocations: 3.938 kB / 0.9781 GB, free: 2.914 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02726/0.6643, allocations: 8.196 MB / 0.9861 GB, free: 11.51 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.18/10.85, allocations: 20.11 kB / 0.9861 GB, free: 11.49 MB / 0.7481 GB (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 & python3 -m fmpy simulate --output-file Buildings_9_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_9_Buildings_Electrical_AC_OnePhase_Loads_Examples_VariableImpedance.fmu > Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance_res.csv","/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