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.001551/0.001551, allocations: 174.8 kB / 12.73 MB, free: 2.59 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.05865/0.05865, allocations: 8.699 MB / 21.96 MB, free: 3.367 MB / 18.57 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.53/1.53, allocations: 221.4 MB / 246 MB, free: 3.551 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.0008859/0.0008858, allocations: 86.81 kB / 299.1 MB, free: 2.984 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.53e-05/3.533e-05, allocations: 4 kB / 359.6 MB, free: 6.426 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2846/0.2846, allocations: 52.54 MB / 412.1 MB, free: 22.54 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1303/0.415, allocations: 102 MB / 0.5021 GB, free: 376 kB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002307/0.4153, allocations: 67.97 kB / 0.5022 GB, free: 308 kB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.578/1.993, allocations: 367.8 MB / 0.8614 GB, free: 59.18 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.494e-06/1.993, allocations: 0 / 0.8614 GB, free: 59.18 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0005967/1.994, allocations: 228.9 kB / 0.8616 GB, free: 59.16 MB / 474.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.03513/2.029, allocations: 10.02 MB / 0.8714 GB, free: 56.34 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.024e-05/2.029, allocations: 15.12 kB / 0.8714 GB, free: 56.34 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007253/2.036, allocations: 1.54 MB / 0.8729 GB, free: 56.22 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02969/2.066, allocations: 5.332 MB / 0.8781 GB, free: 55.66 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01899/2.085, allocations: 7.001 MB / 0.8849 GB, free: 54.78 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009486/2.086, allocations: 0.7629 MB / 0.8857 GB, free: 54.75 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004984/2.091, allocations: 1.004 MB / 0.8867 GB, free: 54.75 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04677/2.138, allocations: 17.35 MB / 0.9036 GB, free: 53.5 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005914/2.139, allocations: 14.92 kB / 0.9036 GB, free: 53.49 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004255/2.143, allocations: 442.8 kB / 0.904 GB, free: 53.49 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001181/2.144, allocations: 0.8213 MB / 0.9048 GB, free: 53.46 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0356/2.18, allocations: 14.67 MB / 0.9192 GB, free: 53.36 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1069/2.287, allocations: 52.79 MB / 0.9707 GB, free: 20.91 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0203/2.307, allocations: 15.7 MB / 0.986 GB, free: 4.828 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007132/2.314, allocations: 3.703 MB / 0.9897 GB, free: 1.508 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007222/2.315, allocations: 196.4 kB / 0.9898 GB, free: 1.336 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001161/2.315, allocations: 86.98 kB / 0.9899 GB, free: 1.238 MB / 474.7 MB Notification: Performance of pre-optimization done (n=504): time 1.115e-05/2.315, allocations: 0 / 0.9899 GB, free: 1.238 MB / 474.7 MB Notification: Performance of matching and sorting (n=504): time 0.02096/2.336, allocations: 6.971 MB / 0.9967 GB, free: 12.45 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001063/2.336, allocations: 133.5 kB / 0.9969 GB, free: 12.3 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007854/2.344, allocations: 3.071 MB / 0.9999 GB, free: 9.621 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001236/2.345, allocations: 105.7 kB / 1 GB, free: 9.512 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003896/2.349, allocations: 4.315 MB / 1.004 GB, free: 5.699 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002898/2.352, allocations: 1.715 MB / 1.006 GB, free: 4.156 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001398/2.354, allocations: 136 kB / 1.006 GB, free: 4.023 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0009182/2.354, allocations: 0.5879 MB / 1.007 GB, free: 3.512 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006823/2.361, allocations: 3.238 MB / 1.01 GB, free: 0.6797 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.429/2.79, allocations: 6.423 MB / 1.016 GB, free: 69.62 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008738/2.799, allocations: 4.585 MB / 1.02 GB, free: 69.55 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001766/2.799, allocations: 18.62 kB / 1.02 GB, free: 69.55 MB / 490.7 MB Notification: Performance of matching and sorting (n=875) (initialization): time 0.02322/2.823, allocations: 10.2 MB / 1.03 GB, free: 69.32 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003474/2.823, allocations: 40.92 kB / 1.03 GB, free: 69.32 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004178/2.823, allocations: 78.78 kB / 1.031 GB, free: 69.32 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004031/2.827, allocations: 1.069 MB / 1.032 GB, free: 69.28 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006755/2.834, allocations: 1.516 MB / 1.033 GB, free: 69.28 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01452/2.849, allocations: 12.4 MB / 1.045 GB, free: 63.9 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00738/2.856, allocations: 0.8501 MB / 1.046 GB, free: 63.71 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002117/2.858, allocations: 317.8 kB / 1.046 GB, free: 63.71 MB / 490.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 (795): * Single equations (assignments): 783 * 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 prepare postOptimizeDAE: time 0.003347/2.862, allocations: 0.5137 MB / 1.047 GB, free: 63.6 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001824/2.864, allocations: 393.9 kB / 1.047 GB, free: 63.39 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01804/2.882, allocations: 7.884 MB / 1.055 GB, free: 63.02 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01053/2.892, allocations: 6.492 MB / 1.061 GB, free: 62.77 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.334e-05/2.892, allocations: 14.05 kB / 1.061 GB, free: 62.77 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.305e-05/2.892, allocations: 33.27 kB / 1.061 GB, free: 62.77 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04052/2.933, allocations: 17.8 MB / 1.079 GB, free: 61.1 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.638e-05/2.933, allocations: 13 kB / 1.079 GB, free: 61.1 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003907/2.937, allocations: 0.9535 MB / 1.08 GB, free: 61.1 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002722/2.94, allocations: 0.9628 MB / 1.081 GB, free: 61.05 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000802/2.941, allocations: 135.2 kB / 1.081 GB, free: 61.05 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01304/2.954, allocations: 12.12 MB / 1.093 GB, free: 55.54 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.655e-05/2.954, allocations: 19.06 kB / 1.093 GB, free: 55.54 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02355/2.977, allocations: 13.46 MB / 1.106 GB, free: 49.71 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004197/2.982, allocations: 1.147 MB / 1.107 GB, free: 49.18 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001862/2.983, allocations: 112.4 kB / 1.107 GB, free: 49.11 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004122/2.988, allocations: 322 kB / 1.107 GB, free: 49.03 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001397/2.989, allocations: 400.1 kB / 1.108 GB, free: 48.96 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008789/2.99, allocations: 167.7 kB / 1.108 GB, free: 48.92 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.005114/2.995, allocations: 2.288 MB / 1.11 GB, free: 48.08 MB / 490.7 MB Notification: Performance of sort global known variables: time 7.21e-07/2.995, allocations: 0 / 1.11 GB, free: 48.08 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01201/3.007, allocations: 2.664 MB / 1.113 GB, free: 47.46 MB / 490.7 MB 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.02624/3.033, allocations: 17.76 MB / 1.13 GB, free: 35.86 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01504/3.048, allocations: 8.565 MB / 1.138 GB, free: 28.18 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.814e-05/3.048, allocations: 4 kB / 1.138 GB, free: 28.17 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006676/3.055, allocations: 4.247 MB / 1.142 GB, free: 24.31 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005687/3.061, allocations: 0.8233 MB / 1.143 GB, free: 23.66 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05147/3.112, allocations: 19.26 MB / 1.162 GB, free: 6.809 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01453/3.127, allocations: 7.183 MB / 1.169 GB, free: 1.344 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.01166/3.139, allocations: 2.726 MB / 1.172 GB, free: 0 / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.02056/3.159, allocations: 4.387 MB / 1.176 GB, free: 15.91 MB / 0.4948 GB Notification: Performance of SimCode: time 2.084e-06/3.159, allocations: 4 kB / 1.176 GB, free: 15.9 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6085/3.768, allocations: 131.2 MB / 1.304 GB, free: 58.85 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002345/3.768, allocations: 163.9 kB / 1.304 GB, free: 58.62 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.435/9.203, allocations: 0 / 1.304 GB, free: 58.62 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)