Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.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.DynamicLoads,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Loads_Examples_DynamicLoads",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Loads_Examples_DynamicLoads",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.001223/0.001223, 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.001347/0.001347, allocations: 194.6 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.284/1.284, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002067/0.002067, allocations: 282.8 kB / 290.7 MB, free: 2.008 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9398/0.9398, allocations: 169.3 MB / 0.4982 GB, free: 13.87 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001922/0.001922, allocations: 100.7 kB / 0.5954 GB, free: 27.95 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1538/0.1558, allocations: 86.98 MB / 0.6803 GB, free: 0.5352 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads): time 0.004902/0.1607, allocations: 3.252 MB / 0.6835 GB, free: 13.28 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002974/0.1637, allocations: 1.852 MB / 0.6853 GB, free: 11.43 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002342/0.164, allocations: 7.938 kB / 0.6853 GB, free: 11.42 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009918/0.165, allocations: 302.2 kB / 0.6856 GB, free: 11.12 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005852/0.1656, allocations: 215 kB / 0.6858 GB, free: 10.91 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000779/0.1664, allocations: 287.3 kB / 0.6861 GB, free: 10.63 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.000541/0.1669, allocations: 402.8 kB / 0.6864 GB, free: 10.24 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003668/0.1673, allocations: 200.9 kB / 0.6866 GB, free: 10.04 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002887/0.1676, allocations: 167.4 kB / 0.6868 GB, free: 9.879 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004254/0.168, allocations: 191.3 kB / 0.687 GB, free: 9.691 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 5.472e-05/0.1681, allocations: 24 kB / 0.687 GB, free: 9.668 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004262/0.1685, allocations: 243.5 kB / 0.6872 GB, free: 9.43 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001415/0.1687, allocations: 119.7 kB / 0.6873 GB, free: 9.312 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001657/0.1689, allocations: 147.3 kB / 0.6875 GB, free: 9.168 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006254/0.1695, allocations: 466.5 kB / 0.6879 GB, free: 8.711 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.649e-06/0.1695, allocations: 0 / 0.6879 GB, free: 8.711 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.1695, allocations: 0 / 0.6879 GB, free: 8.711 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.715e-05/0.1695, allocations: 0 / 0.6879 GB, free: 8.711 MB / 494.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 68 * Number of variables: 68 Notification: Performance of Generate backend data structure: time 0.001129/0.1707, allocations: 0.5927 MB / 0.6885 GB, free: 8.07 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.709e-05/0.1707, allocations: 8.031 kB / 0.6885 GB, free: 8.062 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.517e-05/0.1708, allocations: 70.72 kB / 0.6886 GB, free: 7.984 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007887/0.1716, allocations: 92.47 kB / 0.6887 GB, free: 7.895 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003512/0.172, allocations: 281.1 kB / 0.6889 GB, free: 7.578 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.847e-05/0.172, allocations: 16.88 kB / 0.689 GB, free: 7.562 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001182/0.1721, allocations: 40.48 kB / 0.689 GB, free: 7.523 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006202/0.1727, allocations: 441.1 kB / 0.6894 GB, free: 7.059 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.62e-05/0.1728, allocations: 4 kB / 0.6894 GB, free: 7.055 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.978e-05/0.1728, allocations: 15.97 kB / 0.6894 GB, free: 7.039 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001481/0.173, allocations: 36.53 kB / 0.6895 GB, free: 7.004 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005415/0.1735, allocations: 353.9 kB / 0.6898 GB, free: 6.656 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002375/0.1759, allocations: 2.203 MB / 0.692 GB, free: 4.258 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004267/0.1763, allocations: 271.1 kB / 0.6922 GB, free: 3.984 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002129/0.1766, allocations: 160.7 kB / 0.6924 GB, free: 3.824 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.261e-05/0.1766, allocations: 4 kB / 0.6924 GB, free: 3.82 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.253e-05/0.1766, allocations: 30.56 kB / 0.6924 GB, free: 3.781 MB / 494.1 MB Notification: Performance of pre-optimization done (n=22): time 2.625e-06/0.1766, allocations: 3.984 kB / 0.6924 GB, free: 3.777 MB / 494.1 MB Notification: Performance of matching and sorting (n=23): time 0.001748/0.1784, allocations: 1.065 MB / 0.6934 GB, free: 2.648 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.426e-05/0.1784, allocations: 51.41 kB / 0.6935 GB, free: 2.586 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002459/0.1787, allocations: 252.9 kB / 0.6937 GB, free: 2.332 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.424e-05/0.1787, allocations: 29.7 kB / 0.6938 GB, free: 2.297 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000108/0.1788, allocations: 192 kB / 0.6939 GB, free: 2.102 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.511e-05/0.1789, allocations: 82.75 kB / 0.694 GB, free: 2.02 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001169/0.179, allocations: 73.69 kB / 0.6941 GB, free: 1.941 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001114/0.1791, allocations: 334.8 kB / 0.6944 GB, free: 1.605 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002429/0.1794, allocations: 151.9 kB / 0.6946 GB, free: 1.457 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002807/0.1797, allocations: 241.5 kB / 0.6948 GB, free: 1.184 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005071/0.1802, allocations: 398.9 kB / 0.6952 GB, free: 0.7617 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.31e-06/0.1802, allocations: 7.938 kB / 0.6952 GB, free: 0.7539 MB / 494.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0011/0.1813, allocations: 0.5898 MB / 0.6957 GB, free: 160 kB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.9e-05/0.1813, allocations: 11.94 kB / 0.6958 GB, free: 148 kB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.837e-06/0.1814, allocations: 4 kB / 0.6958 GB, free: 144 kB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007075/0.1821, allocations: 188.9 kB / 0.6959 GB, free: 15.95 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002841/0.1824, allocations: 63.89 kB / 0.696 GB, free: 15.89 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00286/0.1852, allocations: 2.492 MB / 0.6984 GB, free: 13.26 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002968/0.1856, allocations: 15.98 kB / 0.6985 GB, free: 13.24 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.46e-05/0.1856, allocations: 16 kB / 0.6985 GB, free: 13.23 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * 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 (32): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,10,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001662/0.1858, allocations: 166.3 kB / 0.6986 GB, free: 13.05 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.737e-05/0.1858, allocations: 23.72 kB / 0.6987 GB, free: 13.03 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005457/0.1864, allocations: 363.5 kB / 0.699 GB, free: 12.67 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.985e-06/0.1864, allocations: 0 / 0.699 GB, free: 12.67 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.913e-06/0.1864, allocations: 0 / 0.699 GB, free: 12.67 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.867e-06/0.1864, allocations: 4 kB / 0.699 GB, free: 12.67 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001046/0.1875, allocations: 0.8121 MB / 0.6998 GB, free: 11.79 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.294e-06/0.1875, allocations: 0 / 0.6998 GB, free: 11.79 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004072/0.1879, allocations: 79.88 kB / 0.6999 GB, free: 11.71 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.848e-06/0.1879, allocations: 64 / 0.6999 GB, free: 11.71 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.226e-05/0.188, allocations: 8 kB / 0.6999 GB, free: 11.71 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.435e-06/0.188, allocations: 0 / 0.6999 GB, free: 11.71 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/0.188, allocations: 4 kB / 0.6999 GB, free: 11.7 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007241/0.1887, allocations: 0.6119 MB / 0.7005 GB, free: 11.07 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001275/0.1888, allocations: 128.8 kB / 0.7006 GB, free: 10.93 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.461e-05/0.1889, allocations: 4 kB / 0.7006 GB, free: 10.92 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002161/0.1891, allocations: 19.98 kB / 0.7006 GB, free: 10.9 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.278e-05/0.1892, allocations: 19.91 kB / 0.7006 GB, free: 10.88 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.712e-05/0.1892, allocations: 11.94 kB / 0.7007 GB, free: 10.87 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001703/0.1894, allocations: 176.5 kB / 0.7008 GB, free: 10.7 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.1894, allocations: 3.938 kB / 0.7008 GB, free: 10.7 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.000415/0.1898, allocations: 88 kB / 0.7009 GB, free: 10.61 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (dynRC.q[1],dynRC.q[2],dynRL.psi[1],dynRL.psi[2]) * 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 (24): * Single equations (assignments): 24 * 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.001016/0.1908, allocations: 1.156 MB / 0.702 GB, free: 9.418 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.000928/0.1917, allocations: 0.5689 MB / 0.7026 GB, free: 8.836 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.1918, allocations: 0 / 0.7026 GB, free: 8.836 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002006/0.192, allocations: 154.2 kB / 0.7027 GB, free: 8.688 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004477/0.1924, allocations: 54.98 kB / 0.7028 GB, free: 8.641 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004837/0.1973, allocations: 3.658 MB / 0.7064 GB, free: 4.832 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003293/0.1976, allocations: 0.7912 MB / 0.7071 GB, free: 4.016 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.000222/0.1978, allocations: 74.91 kB / 0.7072 GB, free: 3.945 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001413/0.198, allocations: 87.41 kB / 0.7073 GB, free: 3.859 MB / 0.4981 GB Notification: Performance of SimCode: time 1.864e-06/0.198, allocations: 0 / 0.7073 GB, free: 3.859 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03076/0.2288, allocations: 6.707 MB / 0.7138 GB, free: 13.34 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.89/11.12, allocations: 9.078 kB / 0.7139 GB, free: 13.34 MB / 0.5137 GB (rm -f BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Loads_Examples_DynamicLoads_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Electrical_AC_OnePhase_Loads_Examples_DynamicLoads.fmu > BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.pipe 2>&1)