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.004759/0.00476, allocations: 96.7 kB / 15.73 MB, free: 6.047 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.0013/0.0013, allocations: 194.3 kB / 16.67 MB, free: 5.973 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.491/1.491, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002631/0.002631, allocations: 279.2 kB / 290.8 MB, free: 1.918 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.043/1.043, allocations: 169.3 MB / 0.4983 GB, free: 13.79 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00271/0.00271, allocations: 91.92 kB / 0.681 GB, free: 16 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1567/0.1594, allocations: 86.99 MB / 0.7659 GB, free: 8.934 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance): time 0.005162/0.1646, allocations: 3.738 MB / 0.7696 GB, free: 5.176 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.002892/0.1675, allocations: 1.797 MB / 0.7713 GB, free: 3.371 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001588/0.1677, allocations: 19.88 kB / 0.7713 GB, free: 3.352 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0008688/0.1686, allocations: 262.7 kB / 0.7716 GB, free: 3.094 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0006347/0.1692, allocations: 302.4 kB / 0.7719 GB, free: 2.797 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.000569/0.1698, allocations: 250.1 kB / 0.7721 GB, free: 2.555 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0006893/0.1705, allocations: 0.601 MB / 0.7727 GB, free: 1.949 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004378/0.171, allocations: 262.8 kB / 0.7729 GB, free: 1.691 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003286/0.1713, allocations: 231.1 kB / 0.7732 GB, free: 1.465 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003412/0.1717, allocations: 242.9 kB / 0.7734 GB, free: 1.227 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 4.821e-05/0.1717, allocations: 24 kB / 0.7734 GB, free: 1.203 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004474/0.1722, allocations: 275.4 kB / 0.7737 GB, free: 0.9336 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0001403/0.1723, allocations: 119.6 kB / 0.7738 GB, free: 0.8164 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0002123/0.1725, allocations: 206.9 kB / 0.774 GB, free: 0.6133 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0006947/0.1732, allocations: 0.5875 MB / 0.7746 GB, free: 24 kB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 7.163e-06/0.1733, allocations: 4 kB / 0.7746 GB, free: 20 kB / 0.5606 GB Notification: Performance of FrontEnd: time 1.142e-06/0.1733, allocations: 3.938 kB / 0.7746 GB, free: 16 kB / 0.5606 GB Notification: Performance of Transformations before backend: time 6.973e-06/0.1733, allocations: 0 / 0.7746 GB, free: 16 kB / 0.5606 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.2852/0.4584, allocations: 0.7424 MB / 0.7753 GB, free: 15.05 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.462e-05/0.4585, allocations: 11.2 kB / 0.7753 GB, free: 15.05 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.237e-05/0.4586, allocations: 70.45 kB / 0.7754 GB, free: 15.02 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009175/0.4595, allocations: 132.4 kB / 0.7755 GB, free: 14.99 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004995/0.46, allocations: 416.9 kB / 0.7759 GB, free: 14.74 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.187e-05/0.46, allocations: 23.25 kB / 0.7759 GB, free: 14.74 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.359e-05/0.4601, allocations: 32.23 kB / 0.776 GB, free: 14.73 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007372/0.4608, allocations: 0.554 MB / 0.7765 GB, free: 14.52 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.862e-05/0.4609, allocations: 7.406 kB / 0.7765 GB, free: 14.52 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.509e-05/0.4609, allocations: 13.31 kB / 0.7765 GB, free: 14.52 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.215e-05/0.461, allocations: 45.25 kB / 0.7766 GB, free: 14.52 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006816/0.4617, allocations: 407.7 kB / 0.7769 GB, free: 14.5 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002195/0.4639, allocations: 3.327 MB / 0.7802 GB, free: 11.63 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006375/0.4645, allocations: 342.3 kB / 0.7805 GB, free: 11.5 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003042/0.4648, allocations: 178.9 kB / 0.7807 GB, free: 11.44 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 2.2e-05/0.4649, allocations: 2.625 kB / 0.7807 GB, free: 11.44 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.655e-05/0.4649, allocations: 39.39 kB / 0.7807 GB, free: 11.4 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=26): time 1.533e-06/0.4649, allocations: 0 / 0.7807 GB, free: 11.4 MB / 0.5606 GB Notification: Performance of matching and sorting (n=27): time 0.001878/0.4668, allocations: 1.071 MB / 0.7818 GB, free: 10.78 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.116e-05/0.4668, allocations: 54.55 kB / 0.7818 GB, free: 10.71 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003036/0.4671, allocations: 344.2 kB / 0.7822 GB, free: 10.53 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 2.903e-05/0.4672, allocations: 30.95 kB / 0.7822 GB, free: 10.5 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 9.993e-05/0.4673, allocations: 255.4 kB / 0.7824 GB, free: 10.28 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 5.157e-05/0.4673, allocations: 99.69 kB / 0.7825 GB, free: 10.21 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.599e-05/0.4674, allocations: 75.39 kB / 0.7826 GB, free: 10.16 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 5.908e-05/0.4675, allocations: 346.8 kB / 0.7829 GB, free: 9.836 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002483/0.4678, allocations: 147 kB / 0.7831 GB, free: 9.793 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002827/0.468, allocations: 297.3 kB / 0.7834 GB, free: 9.562 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005398/0.4686, allocations: 480.4 kB / 0.7838 GB, free: 9.246 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.4686, allocations: 1.281 kB / 0.7838 GB, free: 9.246 MB / 0.5606 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0008892/0.4695, allocations: 0.567 MB / 0.7844 GB, free: 8.996 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.711e-05/0.4695, allocations: 11.69 kB / 0.7844 GB, free: 8.992 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.325e-06/0.4695, allocations: 4.781 kB / 0.7844 GB, free: 8.992 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002808/0.4698, allocations: 86.66 kB / 0.7845 GB, free: 8.957 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003333/0.4702, allocations: 90.84 kB / 0.7845 GB, free: 8.945 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.054e-05/0.4702, allocations: 6.312 kB / 0.7846 GB, free: 8.945 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000277/0.4705, allocations: 28.91 kB / 0.7846 GB, free: 8.938 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.682e-05/0.4705, allocations: 18.59 kB / 0.7846 GB, free: 8.934 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.0001476/0.4707, allocations: 186.5 kB / 0.7848 GB, free: 8.777 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.524e-05/0.4707, allocations: 43.56 kB / 0.7848 GB, free: 8.754 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007632/0.4715, allocations: 455.9 kB / 0.7853 GB, free: 8.555 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.48e-06/0.4715, allocations: 7.719 kB / 0.7853 GB, free: 8.551 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.653e-06/0.4715, allocations: 4.438 kB / 0.7853 GB, free: 8.551 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.797e-06/0.4715, allocations: 0 / 0.7853 GB, free: 8.551 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001261/0.4728, allocations: 0.9579 MB / 0.7862 GB, free: 7.996 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.966e-06/0.4728, allocations: 9.562 kB / 0.7862 GB, free: 7.988 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002332/0.4731, allocations: 49.98 kB / 0.7863 GB, free: 7.984 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000209/0.4733, allocations: 83.5 kB / 0.7863 GB, free: 7.945 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.769e-05/0.4733, allocations: 2.406 kB / 0.7863 GB, free: 7.945 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.097e-06/0.4733, allocations: 5.25 kB / 0.7863 GB, free: 7.941 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.846e-06/0.4733, allocations: 2.078 kB / 0.7863 GB, free: 7.941 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006711/0.474, allocations: 0.554 MB / 0.7869 GB, free: 7.617 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001131/0.4741, allocations: 139.2 kB / 0.787 GB, free: 7.496 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.724e-05/0.4742, allocations: 4 kB / 0.787 GB, free: 7.492 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002352/0.4744, allocations: 25.72 kB / 0.787 GB, free: 7.484 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.884e-05/0.4745, allocations: 32.58 kB / 0.7871 GB, free: 7.477 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.343e-05/0.4745, allocations: 5.406 kB / 0.7871 GB, free: 7.477 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0001593/0.4747, allocations: 237.8 kB / 0.7873 GB, free: 7.348 MB / 0.5606 GB Notification: Performance of sort global known variables: time 7.72e-07/0.4747, allocations: 0 / 0.7873 GB, free: 7.348 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.000516/0.4752, allocations: 85.83 kB / 0.7874 GB, free: 7.34 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.0007971/0.476, allocations: 1.1 MB / 0.7885 GB, free: 6.48 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0007011/0.4767, allocations: 0.6279 MB / 0.7891 GB, free: 6.059 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.355e-06/0.4767, allocations: 1.219 kB / 0.7891 GB, free: 6.059 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.00036/0.4771, allocations: 435.9 kB / 0.7895 GB, free: 5.695 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007453/0.4778, allocations: 128.2 kB / 0.7896 GB, free: 5.664 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004148/0.482, allocations: 3.732 MB / 0.7933 GB, free: 3.223 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002615/0.4823, allocations: 0.8245 MB / 0.7941 GB, free: 2.512 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0002515/0.4825, allocations: 84.7 kB / 0.7942 GB, free: 2.5 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001546/0.4827, allocations: 127.2 kB / 0.7943 GB, free: 2.406 MB / 0.5606 GB Notification: Performance of SimCode: time 4.71e-07/0.4827, allocations: 0 / 0.7943 GB, free: 2.406 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.946/2.429, allocations: 8.339 MB / 0.8024 GB, free: 1.68 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.55/17.98, allocations: 2.219 kB / 0.8024 GB, free: 1.68 MB / 0.5606 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)