Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.ParallelResistors.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.ParallelResistors,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Loads_Examples_ParallelResistors",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.ParallelResistors,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Loads_Examples_ParallelResistors",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.004526/0.004531, allocations: 99.67 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.001269/0.001269, allocations: 193.5 kB / 16.67 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.481/1.481, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.0025/0.0025, allocations: 276.7 kB / 290.8 MB, free: 14.44 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.015/1.015, allocations: 169.2 MB / 0.4983 GB, free: 4.434 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002758/0.002758, allocations: 99.86 kB / 0.681 GB, free: 7.445 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3978/0.4005, allocations: 86.98 MB / 0.7659 GB, free: 3.836 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.ParallelResistors): time 0.004089/0.4047, allocations: 2.631 MB / 0.7685 GB, free: 1.191 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.002179/0.4069, allocations: 1.321 MB / 0.7698 GB, free: 15.86 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.12e-05/0.407, allocations: 0 / 0.7698 GB, free: 15.86 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.0006641/0.4077, allocations: 179.2 kB / 0.7699 GB, free: 15.69 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.0003584/0.408, allocations: 167.3 kB / 0.7701 GB, free: 15.52 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003604/0.4084, allocations: 159.6 kB / 0.7703 GB, free: 15.37 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0003311/0.4087, allocations: 263.2 kB / 0.7705 GB, free: 15.11 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002943/0.409, allocations: 141.2 kB / 0.7706 GB, free: 14.98 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00018/0.4092, allocations: 103.6 kB / 0.7707 GB, free: 14.88 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002649/0.4095, allocations: 123.6 kB / 0.7709 GB, free: 14.75 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 2.993e-05/0.4095, allocations: 20 kB / 0.7709 GB, free: 14.73 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002507/0.4098, allocations: 143.7 kB / 0.771 GB, free: 14.59 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 8.915e-05/0.4099, allocations: 71.78 kB / 0.7711 GB, free: 14.52 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0001047/0.41, allocations: 87.53 kB / 0.7712 GB, free: 14.44 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0003881/0.4104, allocations: 300.2 kB / 0.7714 GB, free: 14.15 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 2.915e-06/0.4104, allocations: 0 / 0.7714 GB, free: 14.15 MB / 0.545 GB Notification: Performance of FrontEnd: time 2.875e-06/0.4104, allocations: 4 kB / 0.7715 GB, free: 14.14 MB / 0.545 GB Notification: Performance of Transformations before backend: time 5.47e-06/0.4104, allocations: 0 / 0.7715 GB, free: 14.14 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: 41 * Number of variables: 41 Notification: Performance of Generate backend data structure: time 0.0008207/0.4113, allocations: 0.4986 MB / 0.7719 GB, free: 13.59 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.564e-05/0.4113, allocations: 8.031 kB / 0.7719 GB, free: 13.59 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.881e-05/0.4114, allocations: 50.73 kB / 0.772 GB, free: 13.53 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004826/0.4119, allocations: 64.72 kB / 0.7721 GB, free: 13.46 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003172/0.4122, allocations: 250.8 kB / 0.7723 GB, free: 13.18 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.422e-05/0.4122, allocations: 12.59 kB / 0.7723 GB, free: 13.17 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.511e-05/0.4122, allocations: 12.38 kB / 0.7723 GB, free: 13.16 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005356/0.4128, allocations: 305.4 kB / 0.7726 GB, free: 12.84 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.324e-05/0.4128, allocations: 7.938 kB / 0.7726 GB, free: 12.83 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.812e-05/0.4128, allocations: 11.97 kB / 0.7726 GB, free: 12.82 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.812e-05/0.4129, allocations: 28.27 kB / 0.7727 GB, free: 12.79 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000532/0.4134, allocations: 256.6 kB / 0.7729 GB, free: 12.54 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00174/0.4152, allocations: 1.495 MB / 0.7744 GB, free: 10.9 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005215/0.4157, allocations: 261 kB / 0.7746 GB, free: 10.62 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002604/0.416, allocations: 129.6 kB / 0.7747 GB, free: 10.49 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 2.248e-05/0.416, allocations: 4 kB / 0.7747 GB, free: 10.49 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.931e-05/0.4161, allocations: 30.56 kB / 0.7748 GB, free: 10.45 MB / 0.545 GB Notification: Performance of pre-optimization done (n=15): time 1.533e-06/0.4161, allocations: 3.938 kB / 0.7748 GB, free: 10.45 MB / 0.545 GB Notification: Performance of matching and sorting (n=15): time 0.0007902/0.4169, allocations: 348.4 kB / 0.7751 GB, free: 10.1 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.73e-05/0.4169, allocations: 88.98 kB / 0.7752 GB, free: 9.996 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001764/0.4171, allocations: 175.7 kB / 0.7754 GB, free: 9.809 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 3.651e-05/0.4172, allocations: 29.7 kB / 0.7754 GB, free: 9.773 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.000103/0.4173, allocations: 148.2 kB / 0.7755 GB, free: 9.625 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 5.24e-05/0.4173, allocations: 55.53 kB / 0.7756 GB, free: 9.57 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.926e-05/0.4174, allocations: 45.66 kB / 0.7756 GB, free: 9.52 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001402/0.4176, allocations: 330.8 kB / 0.7759 GB, free: 9.188 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002253/0.4178, allocations: 108.8 kB / 0.776 GB, free: 9.078 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002695/0.4181, allocations: 163.6 kB / 0.7762 GB, free: 8.891 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004843/0.4186, allocations: 286 kB / 0.7765 GB, free: 8.59 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.185e-06/0.4186, allocations: 0 / 0.7765 GB, free: 8.59 MB / 0.545 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.000574/0.4192, allocations: 301.3 kB / 0.7768 GB, free: 8.289 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.942e-05/0.4192, allocations: 11.98 kB / 0.7768 GB, free: 8.277 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.13e-06/0.4192, allocations: 0 / 0.7768 GB, free: 8.277 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.689e-05/0.4192, allocations: 8.219 kB / 0.7768 GB, free: 8.27 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002902/0.4195, allocations: 51.95 kB / 0.7768 GB, free: 8.219 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.151e-06/0.4195, allocations: 3.938 kB / 0.7768 GB, free: 8.215 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000214/0.4198, allocations: 39.81 kB / 0.7769 GB, free: 8.176 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.036e-05/0.4198, allocations: 11.94 kB / 0.7769 GB, free: 8.164 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002711/0.4201, allocations: 188.1 kB / 0.7771 GB, free: 7.977 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002378/0.4203, allocations: 162.6 kB / 0.7772 GB, free: 7.789 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0004161/0.4207, allocations: 254.6 kB / 0.7775 GB, free: 7.516 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.353e-06/0.4207, allocations: 0 / 0.7775 GB, free: 7.516 MB / 0.545 GB Notification: Performance of matching and sorting (n=23) (initialization_lambda0): time 0.0005256/0.4213, allocations: 281.2 kB / 0.7777 GB, free: 7.234 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 8.306e-06/0.4213, allocations: 4 kB / 0.7777 GB, free: 7.23 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.688e-06/0.4213, allocations: 8 kB / 0.7777 GB, free: 7.223 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.795e-06/0.4213, allocations: 0 / 0.7777 GB, free: 7.223 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002227/0.4215, allocations: 55.91 kB / 0.7778 GB, free: 7.168 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.367e-06/0.4216, allocations: 0 / 0.7778 GB, free: 7.168 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001788/0.4217, allocations: 24.17 kB / 0.7778 GB, free: 7.145 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.634e-05/0.4218, allocations: 16 kB / 0.7778 GB, free: 7.129 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (23): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001334/0.4219, allocations: 197.1 kB / 0.778 GB, free: 6.93 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.155e-05/0.422, allocations: 15.91 kB / 0.778 GB, free: 6.914 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005721/0.4225, allocations: 271 kB / 0.7783 GB, free: 6.641 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.115e-06/0.4226, allocations: 3.938 kB / 0.7783 GB, free: 6.637 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.66e-06/0.4226, allocations: 0 / 0.7783 GB, free: 6.637 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.014e-06/0.4226, allocations: 7.938 kB / 0.7783 GB, free: 6.629 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001158/0.4237, allocations: 0.6772 MB / 0.779 GB, free: 5.883 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.4238, allocations: 0 / 0.779 GB, free: 5.883 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002457/0.424, allocations: 47.95 kB / 0.779 GB, free: 5.836 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.176e-06/0.424, allocations: 8.062 kB / 0.779 GB, free: 5.828 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.385e-05/0.4241, allocations: 4 kB / 0.779 GB, free: 5.824 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.148e-06/0.4241, allocations: 4 kB / 0.779 GB, free: 5.82 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.637e-06/0.4241, allocations: 3.938 kB / 0.779 GB, free: 5.816 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005712/0.4246, allocations: 446 kB / 0.7795 GB, free: 5.352 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001145/0.4248, allocations: 121 kB / 0.7796 GB, free: 5.215 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.141e-05/0.4248, allocations: 7.938 kB / 0.7796 GB, free: 5.207 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002555/0.4251, allocations: 19.97 kB / 0.7796 GB, free: 5.188 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.338e-05/0.4251, allocations: 19.86 kB / 0.7796 GB, free: 5.168 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.467e-05/0.4252, allocations: 8 kB / 0.7796 GB, free: 5.16 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0001198/0.4253, allocations: 127.8 kB / 0.7797 GB, free: 5.035 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.1e-07/0.4253, allocations: 0 / 0.7797 GB, free: 5.035 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0006312/0.4259, allocations: 91.78 kB / 0.7798 GB, free: 4.945 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * 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 (16): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009177/0.4269, allocations: 0.9872 MB / 0.7808 GB, free: 3.922 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0007488/0.4276, allocations: 375.8 kB / 0.7812 GB, free: 3.555 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.4276, allocations: 0 / 0.7812 GB, free: 3.555 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0002286/0.4279, allocations: 111.9 kB / 0.7813 GB, free: 3.445 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000583/0.4285, allocations: 41 kB / 0.7813 GB, free: 3.41 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003229/0.4317, allocations: 2.455 MB / 0.7837 GB, free: 0.8047 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003725/0.4321, allocations: 0.7518 MB / 0.7844 GB, free: 28 kB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.0002199/0.4323, allocations: 81.52 kB / 0.7845 GB, free: 15.95 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001164/0.4324, allocations: 47.36 kB / 0.7846 GB, free: 15.9 MB / 0.5606 GB Notification: Performance of SimCode: time 5.11e-07/0.4324, allocations: 0 / 0.7846 GB, free: 15.9 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07199/0.5044, allocations: 4.226 MB / 0.7887 GB, free: 11.84 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.528/10.03, allocations: 11.05 kB / 0.7887 GB, free: 11.83 MB / 0.5606 GB (rm -f BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.ParallelResistors.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.ParallelResistors.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.ParallelResistors.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.ParallelResistors.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Loads_Examples_ParallelResistors_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Loads_Examples_ParallelResistors.fmu > BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.ParallelResistors.pipe 2>&1)