Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.Machines.EquivalentCircuit.conf.json 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/HanserModelica 2.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 HanserModelica with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/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) Running command: "" <> buildModelFMU(HanserModelica.Machines.EquivalentCircuit,fileNamePrefix="HanserModelica_HanserModelica_Machines_EquivalentCircuit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.Machines.EquivalentCircuit,fileNamePrefix="HanserModelica_HanserModelica_Machines_EquivalentCircuit",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001026/0.001026, allocations: 180.9 kB / 7.651 MB, free: 1.422 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.04154/0.04154, allocations: 8.719 MB / 16.79 MB, free: 3.387 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.424/1.424, allocations: 221.5 MB / 240.8 MB, free: 13.22 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001064/0.001064, allocations: 94.77 kB / 293.9 MB, free: 7.219 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.052e-05/2.043e-05, allocations: 4 kB / 352.7 MB, free: 1.188 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1015/0.1016, allocations: 52.55 MB / 405.3 MB, free: 12.58 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3732/0.4749, allocations: 101.3 MB / 0.4947 GB, free: 2.188 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003001/0.4752, allocations: 73.36 kB / 0.4948 GB, free: 2.152 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.181/1.656, allocations: 364 MB / 0.8503 GB, free: 51.45 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.373e-06/1.656, allocations: 0 / 0.8503 GB, free: 51.45 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0004963/1.657, allocations: 226.5 kB / 0.8505 GB, free: 51.43 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3006 * Number of variables: 3006 Notification: Performance of Generate backend data structure: time 0.0328/1.689, allocations: 10.01 MB / 0.8603 GB, free: 45.48 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.267e-05/1.69, allocations: 11.77 kB / 0.8603 GB, free: 45.48 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02781/1.717, allocations: 5.32 MB / 0.8655 GB, free: 42.1 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01532/1.733, allocations: 6.997 MB / 0.8723 GB, free: 35.07 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005384/1.733, allocations: 336 kB / 0.8726 GB, free: 34.74 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003253/1.737, allocations: 0.5936 MB / 0.8732 GB, free: 34.15 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02495/1.762, allocations: 13.62 MB / 0.8865 GB, free: 20.52 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04233/1.804, allocations: 15.64 MB / 0.9018 GB, free: 4.527 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003077/1.804, allocations: 11.91 kB / 0.9018 GB, free: 4.516 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001501/1.806, allocations: 12 kB / 0.9018 GB, free: 4.504 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008493/1.807, allocations: 0.8193 MB / 0.9026 GB, free: 3.68 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4436/2.25, allocations: 51.73 MB / 0.9531 GB, free: 43.54 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01612/2.266, allocations: 15.66 MB / 0.9684 GB, free: 33.89 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007107/2.274, allocations: 3.756 MB / 0.9721 GB, free: 33.84 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005175/2.274, allocations: 185 kB / 0.9723 GB, free: 33.74 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.539e-05/2.274, allocations: 96.33 kB / 0.9724 GB, free: 33.7 MB / 458.7 MB Notification: Performance of pre-optimization done (n=504): time 7.053e-06/2.274, allocations: 0 / 0.9724 GB, free: 33.7 MB / 458.7 MB Notification: Performance of matching and sorting (n=504): time 0.01804/2.292, allocations: 7.808 MB / 0.98 GB, free: 33.25 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.779e-05/2.292, allocations: 135.2 kB / 0.9801 GB, free: 33.15 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005764/2.298, allocations: 2.903 MB / 0.9829 GB, free: 32.88 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00121/2.299, allocations: 25.7 kB / 0.983 GB, free: 32.85 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002957/2.302, allocations: 4.313 MB / 0.9872 GB, free: 30.21 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002356/2.305, allocations: 1.641 MB / 0.9888 GB, free: 28.92 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004961/2.305, allocations: 0.75 kB / 0.9888 GB, free: 28.92 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0003639/2.306, allocations: 0.5858 MB / 0.9894 GB, free: 28.5 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004154/2.31, allocations: 3.297 MB / 0.9926 GB, free: 27.29 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005448/2.315, allocations: 5.585 MB / 0.998 GB, free: 23.13 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01024/2.325, allocations: 5.763 MB / 1.004 GB, free: 21.27 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001112/2.326, allocations: 22.84 kB / 1.004 GB, free: 21.27 MB / 458.7 MB Notification: Performance of matching and sorting (n=875) (initialization): time 0.02225/2.348, allocations: 11.01 MB / 1.014 GB, free: 17.98 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.425e-05/2.348, allocations: 38.62 kB / 1.014 GB, free: 17.98 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001413/2.348, allocations: 74.81 kB / 1.015 GB, free: 17.98 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002737/2.351, allocations: 1.086 MB / 1.016 GB, free: 17.73 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006164/2.357, allocations: 1.561 MB / 1.017 GB, free: 17.69 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01257/2.37, allocations: 12.35 MB / 1.029 GB, free: 9.598 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00585/2.376, allocations: 0.7714 MB / 1.03 GB, free: 9.219 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001531/2.377, allocations: 316.9 kB / 1.03 GB, free: 9.168 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 342 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (789): * Single equations (assignments): 777 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 15,(1,100.0%) 15,(1,100.0%) 15,(4,100.0%) 30} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001216/2.378, allocations: 310.8 kB / 1.031 GB, free: 8.992 MB / 458.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01365/2.392, allocations: 7.825 MB / 1.038 GB, free: 4.035 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001008/2.393, allocations: 391.7 kB / 1.039 GB, free: 3.648 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01784/2.411, allocations: 9.083 MB / 1.047 GB, free: 12.77 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0152/2.426, allocations: 7.675 MB / 1.055 GB, free: 6.488 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.692e-05/2.426, allocations: 12.56 kB / 1.055 GB, free: 6.477 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001042/2.426, allocations: 31.47 kB / 1.055 GB, free: 6.473 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04193/2.468, allocations: 17.77 MB / 1.072 GB, free: 8 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.956e-05/2.468, allocations: 16.06 kB / 1.072 GB, free: 7.984 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004166/2.473, allocations: 0.9951 MB / 1.073 GB, free: 7.172 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002654/2.475, allocations: 0.951 MB / 1.074 GB, free: 6.434 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006575/2.476, allocations: 59.2 kB / 1.074 GB, free: 6.387 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01398/2.49, allocations: 11.71 MB / 1.086 GB, free: 11.5 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.032e-05/2.49, allocations: 23.88 kB / 1.086 GB, free: 11.48 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.381/2.871, allocations: 15.61 MB / 1.101 GB, free: 85.66 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003992/2.875, allocations: 1.178 MB / 1.102 GB, free: 85.57 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001437/2.876, allocations: 25.31 kB / 1.102 GB, free: 85.57 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003466/2.88, allocations: 281.2 kB / 1.102 GB, free: 85.57 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008599/2.881, allocations: 400.8 kB / 1.103 GB, free: 85.57 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004055/2.881, allocations: 170.2 kB / 1.103 GB, free: 85.57 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.003782/2.885, allocations: 2.123 MB / 1.105 GB, free: 85.42 MB / 0.4948 GB Notification: Performance of sort global known variables: time 4.31e-07/2.885, allocations: 0 / 1.105 GB, free: 85.42 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.008929/2.894, allocations: 2.45 MB / 1.107 GB, free: 85.27 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 60 * Number of states: 2 (main_e.plug_p.reference.gamma,converter_m.port_p.reference.gamma) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (507): * Single equations (assignments): 495 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 13,(1,100.0%) 13,(1,100.0%) 13,(4,100.0%) 30} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0239/2.918, allocations: 19 MB / 1.126 GB, free: 78.23 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01468/2.933, allocations: 8.56 MB / 1.134 GB, free: 77.59 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.967e-05/2.933, allocations: 0 / 1.134 GB, free: 77.59 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.00679/2.94, allocations: 4.272 MB / 1.139 GB, free: 77.1 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00556/2.945, allocations: 0.7035 MB / 1.139 GB, free: 77.09 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04189/2.987, allocations: 19.03 MB / 1.158 GB, free: 73.76 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009021/2.996, allocations: 7.179 MB / 1.165 GB, free: 72.84 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.007337/3.003, allocations: 2.605 MB / 1.167 GB, free: 72.7 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005135/3.009, allocations: 3.528 MB / 1.171 GB, free: 72.69 MB / 0.4948 GB Notification: Performance of SimCode: time 1.052e-06/3.009, allocations: 0 / 1.171 GB, free: 72.69 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6304/3.639, allocations: 127.9 MB / 1.296 GB, free: 60.3 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001458/3.639, allocations: 130.5 kB / 1.296 GB, free: 60.11 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.381/9.021, allocations: 0 / 1.296 GB, free: 60.11 MB / 0.4948 GB (rm -f HanserModelica_HanserModelica.Machines.EquivalentCircuit.pipe ; mkfifo HanserModelica_HanserModelica.Machines.EquivalentCircuit.pipe ; head -c 1048576 < HanserModelica_HanserModelica.Machines.EquivalentCircuit.pipe >> ../files/HanserModelica_HanserModelica.Machines.EquivalentCircuit.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_Machines_EquivalentCircuit_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_Machines_EquivalentCircuit.fmu > HanserModelica_HanserModelica.Machines.EquivalentCircuit.pipe 2>&1)