Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.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(BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Loads_Examples_VariableImpedance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance,fileNamePrefix="BuildingSystems_BuildingSystems_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.007086/0.007086, allocations: 100.1 kB / 15.73 MB, free: 6.008 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.001594/0.001594, allocations: 196.9 kB / 16.68 MB, free: 5.93 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.322/1.322, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00217/0.00217, allocations: 284.8 kB / 290.8 MB, free: 14.43 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9349/0.9349, allocations: 169.3 MB / 0.4983 GB, free: 4.41 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001872/0.001872, allocations: 91.86 kB / 0.681 GB, free: 7.445 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4264/0.4283, allocations: 86.97 MB / 0.7659 GB, free: 3.844 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance): time 0.005408/0.4337, allocations: 3.74 MB / 0.7696 GB, free: 88 kB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.002869/0.4366, allocations: 1.793 MB / 0.7713 GB, free: 14.29 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002021/0.4369, allocations: 19.88 kB / 0.7713 GB, free: 14.27 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.0008862/0.4378, allocations: 266.7 kB / 0.7716 GB, free: 14 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.0006238/0.4384, allocations: 314.4 kB / 0.7719 GB, free: 13.7 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005401/0.439, allocations: 243 kB / 0.7721 GB, free: 13.46 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0006039/0.4396, allocations: 0.6088 MB / 0.7727 GB, free: 12.85 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004125/0.44, allocations: 258.6 kB / 0.7729 GB, free: 12.59 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003091/0.4403, allocations: 239.1 kB / 0.7732 GB, free: 12.36 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002842/0.4406, allocations: 227 kB / 0.7734 GB, free: 12.14 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 4.078e-05/0.4407, allocations: 24 kB / 0.7734 GB, free: 12.11 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004227/0.4411, allocations: 279.4 kB / 0.7737 GB, free: 11.84 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0001295/0.4412, allocations: 131.6 kB / 0.7738 GB, free: 11.71 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0002034/0.4414, allocations: 206.8 kB / 0.774 GB, free: 11.51 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0006538/0.4421, allocations: 0.5956 MB / 0.7746 GB, free: 10.91 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.4421, allocations: 0 / 0.7746 GB, free: 10.91 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.593e-06/0.4421, allocations: 0 / 0.7746 GB, free: 10.91 MB / 0.545 GB Notification: Performance of Transformations before backend: time 7.374e-06/0.4421, allocations: 0 / 0.7746 GB, free: 10.91 MB / 0.545 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.001102/0.4432, allocations: 0.7362 MB / 0.7753 GB, free: 10.12 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.02e-05/0.4433, allocations: 12.03 kB / 0.7753 GB, free: 10.11 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.78e-05/0.4434, allocations: 66.72 kB / 0.7754 GB, free: 10.04 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008553/0.4442, allocations: 132.2 kB / 0.7755 GB, free: 9.91 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005495/0.4448, allocations: 411.6 kB / 0.7759 GB, free: 9.473 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.098e-05/0.4448, allocations: 21.03 kB / 0.7759 GB, free: 9.449 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.935e-05/0.4449, allocations: 32.36 kB / 0.776 GB, free: 9.418 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007887/0.4457, allocations: 0.5555 MB / 0.7765 GB, free: 8.797 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.032e-05/0.4457, allocations: 11.78 kB / 0.7765 GB, free: 8.785 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.577e-05/0.4457, allocations: 16 kB / 0.7765 GB, free: 8.77 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.087e-05/0.4458, allocations: 40.53 kB / 0.7766 GB, free: 8.727 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000691/0.4465, allocations: 409.7 kB / 0.7769 GB, free: 8.328 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002809/0.4493, allocations: 3.333 MB / 0.7802 GB, free: 4.742 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006433/0.45, allocations: 332.9 kB / 0.7805 GB, free: 4.41 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002899/0.4503, allocations: 180.8 kB / 0.7807 GB, free: 4.23 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 2.871e-05/0.4503, allocations: 4 kB / 0.7807 GB, free: 4.227 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.179e-05/0.4504, allocations: 34.56 kB / 0.7807 GB, free: 4.184 MB / 0.545 GB Notification: Performance of pre-optimization done (n=26): time 1.663e-06/0.4504, allocations: 0 / 0.7807 GB, free: 4.184 MB / 0.545 GB Notification: Performance of matching and sorting (n=27): time 0.002003/0.4524, allocations: 1.062 MB / 0.7818 GB, free: 3.051 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.369e-05/0.4524, allocations: 55.64 kB / 0.7818 GB, free: 2.984 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003284/0.4528, allocations: 341.5 kB / 0.7821 GB, free: 2.641 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 2.728e-05/0.4528, allocations: 29.7 kB / 0.7822 GB, free: 2.605 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001603/0.453, allocations: 255.5 kB / 0.7824 GB, free: 2.352 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 7.643e-05/0.4531, allocations: 94.64 kB / 0.7825 GB, free: 2.258 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001112/0.4532, allocations: 74.05 kB / 0.7826 GB, free: 2.18 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001508/0.4533, allocations: 346.8 kB / 0.7829 GB, free: 1.832 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002654/0.4536, allocations: 156.8 kB / 0.7831 GB, free: 1.68 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00035/0.454, allocations: 286.5 kB / 0.7833 GB, free: 1.336 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00064/0.4546, allocations: 488.1 kB / 0.7838 GB, free: 0.7969 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.497e-06/0.4546, allocations: 4 kB / 0.7838 GB, free: 0.793 MB / 0.545 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0009524/0.4556, allocations: 0.5543 MB / 0.7843 GB, free: 228 kB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.837e-05/0.4556, allocations: 8.062 kB / 0.7844 GB, free: 220 kB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.456e-06/0.4556, allocations: 8 kB / 0.7844 GB, free: 212 kB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003018/0.4559, allocations: 86.5 kB / 0.7844 GB, free: 116 kB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000341/0.4563, allocations: 87.83 kB / 0.7845 GB, free: 28 kB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.607e-05/0.4563, allocations: 15.92 kB / 0.7845 GB, free: 12 kB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002549/0.4566, allocations: 24.03 kB / 0.7846 GB, free: 15.98 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.046e-05/0.4566, allocations: 19.94 kB / 0.7846 GB, free: 15.97 MB / 0.5606 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.0001854/0.4568, allocations: 177.6 kB / 0.7848 GB, free: 15.79 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.243e-05/0.4569, allocations: 39.53 kB / 0.7848 GB, free: 15.75 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000866/0.4577, allocations: 462.3 kB / 0.7852 GB, free: 15.28 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.502e-06/0.4578, allocations: 11.98 kB / 0.7852 GB, free: 15.27 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.322e-06/0.4578, allocations: 0 / 0.7852 GB, free: 15.27 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.526e-06/0.4578, allocations: 0 / 0.7852 GB, free: 15.27 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001393/0.4592, allocations: 0.9598 MB / 0.7862 GB, free: 14.23 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.574e-06/0.4592, allocations: 4.094 kB / 0.7862 GB, free: 14.23 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002391/0.4594, allocations: 51.84 kB / 0.7862 GB, free: 14.18 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002397/0.4597, allocations: 86.5 kB / 0.7863 GB, free: 14.09 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.33e-05/0.4597, allocations: 4 kB / 0.7863 GB, free: 14.08 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.512e-06/0.4597, allocations: 7.938 kB / 0.7863 GB, free: 14.07 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.795e-06/0.4597, allocations: 3.984 kB / 0.7863 GB, free: 14.07 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008444/0.4606, allocations: 0.5435 MB / 0.7869 GB, free: 13.49 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001434/0.4607, allocations: 136.6 kB / 0.787 GB, free: 13.34 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.419e-05/0.4608, allocations: 4 kB / 0.787 GB, free: 13.34 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002092/0.461, allocations: 27.91 kB / 0.787 GB, free: 13.31 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.471e-05/0.4611, allocations: 23.97 kB / 0.787 GB, free: 13.29 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.77e-05/0.4611, allocations: 4 kB / 0.787 GB, free: 13.28 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0002505/0.4614, allocations: 243.2 kB / 0.7873 GB, free: 13.04 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.6e-07/0.4614, allocations: 3.938 kB / 0.7873 GB, free: 13.04 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0004103/0.4618, allocations: 84 kB / 0.7874 GB, free: 12.95 MB / 0.5606 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.001164/0.463, allocations: 1.093 MB / 0.7884 GB, free: 11.81 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0009003/0.4639, allocations: 0.6286 MB / 0.789 GB, free: 11.12 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.4639, allocations: 4.125 kB / 0.789 GB, free: 11.12 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0004374/0.4644, allocations: 440.9 kB / 0.7895 GB, free: 10.62 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006608/0.465, allocations: 136.8 kB / 0.7896 GB, free: 10.5 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004584/0.4696, allocations: 3.728 MB / 0.7932 GB, free: 6.543 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003678/0.47, allocations: 0.8269 MB / 0.794 GB, free: 5.688 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0002334/0.4702, allocations: 83.34 kB / 0.7941 GB, free: 5.605 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001795/0.4704, allocations: 123.4 kB / 0.7942 GB, free: 5.484 MB / 0.5606 GB Notification: Performance of SimCode: time 6.21e-07/0.4704, allocations: 0 / 0.7942 GB, free: 5.484 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02839/0.4988, allocations: 8.32 MB / 0.8024 GB, free: 13.41 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.984/10.48, allocations: 12.38 kB / 0.8024 GB, free: 13.4 MB / 0.5762 GB (rm -f BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Loads_Examples_VariableImpedance_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Loads_Examples_VariableImpedance.fmu > BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe 2>&1)