Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip2.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.SynchronousMachines.SMEE_Slip2,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_Slip2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_Slip2,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_Slip2",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.001021/0.001021, allocations: 173.9 kB / 7.648 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.0415/0.0415, allocations: 8.712 MB / 16.79 MB, free: 3.379 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.491/1.491, allocations: 221.5 MB / 240.9 MB, free: 13.14 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.0009792/0.0009791, allocations: 92.8 kB / 293.8 MB, free: 7.234 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.917e-05/1.927e-05, allocations: 4 kB / 352.7 MB, free: 1.152 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.135/0.1351, allocations: 52.55 MB / 405.3 MB, free: 12.54 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.453/0.5881, allocations: 139 MB / 0.5315 GB, free: 12.77 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002718/0.5885, allocations: 83.19 kB / 0.5316 GB, free: 12.69 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9854/1.574, allocations: 218.5 MB / 0.745 GB, free: 57.82 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.385e-06/1.574, allocations: 0 / 0.745 GB, free: 57.82 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.000639/1.575, allocations: 145.1 kB / 0.7451 GB, free: 57.81 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: 1800 * Number of variables: 1800 Notification: Performance of Generate backend data structure: time 0.02353/1.598, allocations: 6.126 MB / 0.7511 GB, free: 55.94 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.97e-05/1.598, allocations: 13.61 kB / 0.7511 GB, free: 55.94 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01771/1.616, allocations: 3.011 MB / 0.754 GB, free: 55.57 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01551/1.631, allocations: 5.564 MB / 0.7595 GB, free: 54.89 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005322/1.632, allocations: 206 kB / 0.7597 GB, free: 54.89 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003459/1.636, allocations: 369.4 kB / 0.76 GB, free: 54.88 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01982/1.655, allocations: 7.985 MB / 0.7678 GB, free: 54.85 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02695/1.682, allocations: 9.142 MB / 0.7768 GB, free: 54.1 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003221/1.683, allocations: 13.62 kB / 0.7768 GB, free: 54.09 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001778/1.685, allocations: 2.406 kB / 0.7768 GB, free: 54.09 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004974/1.685, allocations: 0.4907 MB / 0.7773 GB, free: 54.08 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07217/1.757, allocations: 34.92 MB / 0.8114 GB, free: 45.86 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0215/1.779, allocations: 21.78 MB / 0.8326 GB, free: 27.05 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004061/1.783, allocations: 2.27 MB / 0.8348 GB, free: 26.17 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004794/1.783, allocations: 228.1 kB / 0.8351 GB, free: 25.97 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.686e-05/1.784, allocations: 68.27 kB / 0.8351 GB, free: 25.9 MB / 458.7 MB Notification: Performance of pre-optimization done (n=295): time 6.352e-06/1.784, allocations: 0 / 0.8351 GB, free: 25.9 MB / 458.7 MB Notification: Performance of matching and sorting (n=301): time 0.01934/1.803, allocations: 9.84 MB / 0.8447 GB, free: 21.76 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.963e-05/1.803, allocations: 84.38 kB / 0.8448 GB, free: 21.69 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003178/1.806, allocations: 2.317 MB / 0.8471 GB, free: 20.72 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003209/1.806, allocations: 25.7 kB / 0.8471 GB, free: 20.69 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001277/1.808, allocations: 2.874 MB / 0.8499 GB, free: 18.49 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007882/1.809, allocations: 0.9896 MB / 0.8509 GB, free: 17.72 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002086/1.809, allocations: 0 / 0.8509 GB, free: 17.72 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0002623/1.809, allocations: 493.3 kB / 0.8513 GB, free: 17.34 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00233/1.811, allocations: 1.965 MB / 0.8533 GB, free: 16.54 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002971/1.814, allocations: 3.62 MB / 0.8568 GB, free: 13.56 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005629/1.82, allocations: 3.478 MB / 0.8602 GB, free: 12.32 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.018e-05/1.82, allocations: 18.66 kB / 0.8602 GB, free: 12.32 MB / 458.7 MB Notification: Performance of matching and sorting (n=594) (initialization): time 0.01231/1.832, allocations: 6.861 MB / 0.8669 GB, free: 10.13 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.025e-05/1.832, allocations: 28.66 kB / 0.8669 GB, free: 10.13 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.084e-05/1.833, allocations: 54.56 kB / 0.867 GB, free: 10.13 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00172/1.834, allocations: 0.667 MB / 0.8676 GB, free: 10 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003948/1.838, allocations: 1.096 MB / 0.8687 GB, free: 9.969 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007399/1.846, allocations: 5.617 MB / 0.8742 GB, free: 6.727 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004334/1.85, allocations: 239.2 kB / 0.8744 GB, free: 6.711 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008217/1.851, allocations: 234.6 kB / 0.8747 GB, free: 6.676 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 250 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (559): * Single equations (assignments): 558 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(8,67.2%) 28} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0007817/1.852, allocations: 254.6 kB / 0.8749 GB, free: 6.52 MB / 458.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01081/1.862, allocations: 4.341 MB / 0.8791 GB, free: 4.938 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001515/1.864, allocations: 302.1 kB / 0.8794 GB, free: 4.691 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01739/1.881, allocations: 4.996 MB / 0.8843 GB, free: 0.6445 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.018e-05/1.882, allocations: 32 kB / 0.8843 GB, free: 0.6133 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.917e-05/1.882, allocations: 4 kB / 0.8843 GB, free: 0.6094 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.636e-05/1.882, allocations: 17.53 kB / 0.8844 GB, free: 0.6094 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04053/1.922, allocations: 11.03 MB / 0.8951 GB, free: 7.641 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.381e-05/1.922, allocations: 4 kB / 0.8951 GB, free: 7.637 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004751/1.927, allocations: 0.5543 MB / 0.8957 GB, free: 7.203 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003066/1.93, allocations: 0.5476 MB / 0.8962 GB, free: 6.797 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007399/1.931, allocations: 31.22 kB / 0.8962 GB, free: 6.773 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01218/1.943, allocations: 4.873 MB / 0.901 GB, free: 2.398 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.788e-05/1.943, allocations: 6.062 kB / 0.901 GB, free: 2.395 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02389/1.967, allocations: 7.488 MB / 0.9083 GB, free: 11.7 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0038/1.971, allocations: 0.7556 MB / 0.9091 GB, free: 11.01 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001821/1.973, allocations: 8 kB / 0.9091 GB, free: 11 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004923/1.978, allocations: 131 kB / 0.9092 GB, free: 10.93 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009451/1.979, allocations: 209.9 kB / 0.9094 GB, free: 10.8 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005711/1.979, allocations: 82.62 kB / 0.9095 GB, free: 10.72 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.005538/1.985, allocations: 1.668 MB / 0.9111 GB, free: 9.238 MB / 490.7 MB Notification: Performance of sort global known variables: time 9.72e-07/1.985, allocations: 0 / 0.9111 GB, free: 9.238 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.009273/1.994, allocations: 1.057 MB / 0.9121 GB, free: 8.188 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 2 (smee.gamma,smee.excitation.electroMagneticConverter.port_p.reference.gamma) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (291): * Single equations (assignments): 290 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(8,64.1%) 26} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.3373/2.332, allocations: 9.501 MB / 0.9214 GB, free: 82.17 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.009902/2.342, allocations: 4.851 MB / 0.9261 GB, free: 81.97 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.227e-05/2.342, allocations: 3.469 kB / 0.9261 GB, free: 81.97 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004578/2.346, allocations: 2.237 MB / 0.9283 GB, free: 81.83 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003716/2.35, allocations: 455.5 kB / 0.9288 GB, free: 81.82 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02578/2.376, allocations: 11.17 MB / 0.9397 GB, free: 79.85 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004126/2.38, allocations: 4.254 MB / 0.9438 GB, free: 79.03 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.004455/2.384, allocations: 1.383 MB / 0.9452 GB, free: 79 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003391/2.388, allocations: 2.234 MB / 0.9474 GB, free: 78.99 MB / 490.7 MB Notification: Performance of SimCode: time 7.02e-07/2.388, allocations: 0 / 0.9474 GB, free: 78.99 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1344/2.522, allocations: 82.24 MB / 1.028 GB, free: 64.72 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001386/2.522, allocations: 139.5 kB / 1.028 GB, free: 64.52 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.342/6.865, allocations: 4.031 kB / 1.028 GB, free: 64.52 MB / 490.7 MB (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip2.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip2.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip2.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_SynchronousMachines_SMEE_Slip2_fmu --startTime=0 --stopTime=30 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_SynchronousMachines_SMEE_Slip2.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip2.pipe 2>&1)