Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.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.TestImpedance,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Loads_Examples_TestImpedance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.TestImpedance,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Loads_Examples_TestImpedance",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.007529/0.007529, allocations: 96.31 kB / 15.73 MB, free: 6.043 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.001915/0.001916, allocations: 195.7 kB / 16.68 MB, free: 5.969 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.458/1.458, allocations: 222.9 MB / 240.4 MB, free: 4.305 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002506/0.002507, allocations: 290.5 kB / 290.8 MB, free: 1.898 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.038/1.038, allocations: 169.3 MB / 0.4983 GB, free: 13.79 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.004516/0.004516, allocations: 92.25 kB / 0.681 GB, free: 15.96 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1709/0.1755, allocations: 86.98 MB / 0.7659 GB, free: 8.902 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.TestImpedance): time 0.006857/0.1824, allocations: 4.84 MB / 0.7706 GB, free: 4.039 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.004403/0.1868, allocations: 2.444 MB / 0.773 GB, free: 1.586 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005022/0.1873, allocations: 23.81 kB / 0.773 GB, free: 1.562 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.001268/0.1886, allocations: 413.9 kB / 0.7734 GB, free: 1.156 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.001141/0.1898, allocations: 441.7 kB / 0.7739 GB, free: 0.7227 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008872/0.1907, allocations: 374.3 kB / 0.7742 GB, free: 368 kB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.2961/0.4868, allocations: 0.9136 MB / 0.7751 GB, free: 8.613 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006191/0.4875, allocations: 355.6 kB / 0.7754 GB, free: 8.598 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004591/0.488, allocations: 335.6 kB / 0.7758 GB, free: 8.586 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004381/0.4884, allocations: 349.9 kB / 0.7761 GB, free: 8.52 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 6.221e-05/0.4885, allocations: 42.34 kB / 0.7761 GB, free: 8.516 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006743/0.4892, allocations: 403.2 kB / 0.7765 GB, free: 8.516 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0001803/0.4894, allocations: 176.2 kB / 0.7767 GB, free: 8.492 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0002624/0.4896, allocations: 320 kB / 0.777 GB, free: 8.391 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0009644/0.4906, allocations: 0.8867 MB / 0.7779 GB, free: 8.246 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.696e-06/0.4906, allocations: 0 / 0.7779 GB, free: 8.246 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.804e-06/0.4906, allocations: 5 kB / 0.7779 GB, free: 8.246 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 9.828e-06/0.4906, allocations: 0 / 0.7779 GB, free: 8.246 MB / 0.5606 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 129 * Number of variables: 129 Notification: Performance of Generate backend data structure: time 0.001207/0.4918, allocations: 0.9566 MB / 0.7788 GB, free: 7.621 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.769e-05/0.4919, allocations: 9.719 kB / 0.7788 GB, free: 7.621 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.752e-05/0.492, allocations: 89.97 kB / 0.7789 GB, free: 7.582 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001196/0.4932, allocations: 208.2 kB / 0.7791 GB, free: 7.539 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006658/0.4939, allocations: 0.5416 MB / 0.7796 GB, free: 7.254 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.809e-05/0.4939, allocations: 34.06 kB / 0.7797 GB, free: 7.254 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.707e-05/0.494, allocations: 48.84 kB / 0.7797 GB, free: 7.25 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008782/0.4949, allocations: 0.844 MB / 0.7805 GB, free: 6.875 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.432e-05/0.4949, allocations: 11.23 kB / 0.7805 GB, free: 6.875 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.077e-05/0.495, allocations: 25.25 kB / 0.7806 GB, free: 6.875 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.766e-05/0.495, allocations: 66.59 kB / 0.7806 GB, free: 6.871 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007402/0.4958, allocations: 0.5693 MB / 0.7812 GB, free: 6.863 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004101/0.4999, allocations: 5.645 MB / 0.7867 GB, free: 18.21 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006698/0.5006, allocations: 456.6 kB / 0.7871 GB, free: 18.11 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003054/0.5009, allocations: 224.4 kB / 0.7873 GB, free: 18.02 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 3.446e-05/0.501, allocations: 7.625 kB / 0.7874 GB, free: 18.02 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.93e-05/0.501, allocations: 41.38 kB / 0.7874 GB, free: 17.97 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=32): time 3.566e-06/0.501, allocations: 0.9375 kB / 0.7874 GB, free: 17.97 MB / 0.5762 GB Notification: Performance of matching and sorting (n=33): time 0.002675/0.5037, allocations: 1.513 MB / 0.7889 GB, free: 17.04 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.143e-05/0.5037, allocations: 57.25 kB / 0.7889 GB, free: 16.98 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004499/0.5042, allocations: 499.9 kB / 0.7894 GB, free: 16.75 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 3.374e-05/0.5042, allocations: 32.45 kB / 0.7894 GB, free: 16.71 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001828/0.5044, allocations: 362.9 kB / 0.7898 GB, free: 16.42 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 6.771e-05/0.5045, allocations: 124.8 kB / 0.7899 GB, free: 16.33 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001221/0.5046, allocations: 112.1 kB / 0.79 GB, free: 16.27 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001852/0.5048, allocations: 364.6 kB / 0.7904 GB, free: 15.93 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002487/0.5051, allocations: 201.8 kB / 0.7905 GB, free: 15.86 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003255/0.5054, allocations: 444.5 kB / 0.791 GB, free: 15.48 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006718/0.5061, allocations: 0.6961 MB / 0.7916 GB, free: 14.97 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.717e-06/0.5061, allocations: 2.844 kB / 0.7917 GB, free: 14.97 MB / 0.5762 GB Notification: Performance of matching and sorting (n=71) (initialization): time 0.001171/0.5073, allocations: 0.8094 MB / 0.7924 GB, free: 14.67 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.481e-05/0.5073, allocations: 10.78 kB / 0.7925 GB, free: 14.67 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.121e-05/0.5073, allocations: 9.906 kB / 0.7925 GB, free: 14.67 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004485/0.5078, allocations: 152.6 kB / 0.7926 GB, free: 14.6 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004187/0.5082, allocations: 129 kB / 0.7927 GB, free: 14.59 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003475/0.5117, allocations: 4.346 MB / 0.797 GB, free: 10.34 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004714/0.5122, allocations: 34.56 kB / 0.797 GB, free: 10.34 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.255e-05/0.5122, allocations: 28.94 kB / 0.797 GB, free: 10.33 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 38 * 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 (66): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,1,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002885/0.5125, allocations: 219.4 kB / 0.7972 GB, free: 10.17 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.345e-05/0.5126, allocations: 62.44 kB / 0.7973 GB, free: 10.14 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009159/0.5135, allocations: 0.5935 MB / 0.7979 GB, free: 9.871 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.637e-06/0.5135, allocations: 6.344 kB / 0.7979 GB, free: 9.871 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.477e-06/0.5136, allocations: 1.453 kB / 0.7979 GB, free: 9.871 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.549e-06/0.5136, allocations: 1.594 kB / 0.7979 GB, free: 9.871 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001712/0.5153, allocations: 1.257 MB / 0.7991 GB, free: 9.184 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.148e-06/0.5153, allocations: 9.734 kB / 0.7991 GB, free: 9.18 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002416/0.5156, allocations: 55.67 kB / 0.7992 GB, free: 9.18 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003882/0.5159, allocations: 140.9 kB / 0.7993 GB, free: 9.117 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.526e-05/0.516, allocations: 16.81 kB / 0.7993 GB, free: 9.105 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003626/0.5196, allocations: 4.338 MB / 0.8036 GB, free: 4.848 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.206e-06/0.5196, allocations: 4.031 kB / 0.8036 GB, free: 4.848 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009867/0.5206, allocations: 0.7085 MB / 0.8043 GB, free: 4.426 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000233/0.5209, allocations: 174.2 kB / 0.8044 GB, free: 4.281 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.132e-05/0.5209, allocations: 9.656 kB / 0.8044 GB, free: 4.277 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002823/0.5212, allocations: 23.12 kB / 0.8045 GB, free: 4.273 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.19e-05/0.5213, allocations: 37.5 kB / 0.8045 GB, free: 4.258 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.753e-05/0.5213, allocations: 10.41 kB / 0.8045 GB, free: 4.258 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0003833/0.5217, allocations: 332 kB / 0.8048 GB, free: 4.105 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5217, allocations: 0 / 0.8048 GB, free: 4.105 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0008045/0.5225, allocations: 142.5 kB / 0.805 GB, free: 4.09 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * 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 (29): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,1,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001391/0.5239, allocations: 1.257 MB / 0.8062 GB, free: 3.137 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.001447/0.5254, allocations: 1.043 MB / 0.8072 GB, free: 2.414 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 5.59e-06/0.5254, allocations: 4.125 kB / 0.8072 GB, free: 2.41 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0008963/0.5263, allocations: 0.7309 MB / 0.8079 GB, free: 1.805 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001062/0.5274, allocations: 206.1 kB / 0.8081 GB, free: 1.746 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007135/0.5345, allocations: 5.119 MB / 0.8131 GB, free: 14.48 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006088/0.5352, allocations: 0.9022 MB / 0.814 GB, free: 13.76 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0004248/0.5356, allocations: 125.4 kB / 0.8141 GB, free: 13.73 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002705/0.5359, allocations: 190.8 kB / 0.8143 GB, free: 13.59 MB / 0.5919 GB Notification: Performance of SimCode: time 6.81e-07/0.5359, allocations: 0 / 0.8143 GB, free: 13.59 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04513/0.581, allocations: 12.72 MB / 0.8267 GB, free: 10.11 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.95/12.53, allocations: 9.109 kB / 0.8267 GB, free: 10.1 MB / 0.5919 GB (rm -f BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Loads_Examples_TestImpedance_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Loads_Examples_TestImpedance.fmu > BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.pipe 2>&1)