Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve4.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/Modelica 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/HanserModelica 2.0.0-master/package.mo", uses=false) 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) 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(HanserModelica.SynchronousMachines.SMEE_VCurve4,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve4") translateModel(HanserModelica.SynchronousMachines.SMEE_VCurve4,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve4") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001111/0.001111, allocations: 113.4 kB / 16.41 MB, free: 6.027 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.349/1.349, allocations: 222.9 MB / 240.1 MB, free: 4.562 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001471/0.001471, allocations: 192.4 kB / 290.4 MB, free: 2.277 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03371/0.03371, allocations: 8.802 MB / 349.3 MB, free: 4.629 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001505/0.001505, allocations: 83.86 kB / 464.6 MB, free: 13.06 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1095/0.111, allocations: 51.55 MB / 0.5041 GB, free: 9.477 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_VCurve4): time 0.2713/0.3824, allocations: 25.45 MB / 0.529 GB, free: 4.965 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01481/0.3973, allocations: 7.94 MB / 0.5367 GB, free: 4.875 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005717/0.403, allocations: 174.7 kB / 0.5369 GB, free: 4.875 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01772/0.4208, allocations: 7.652 MB / 0.5443 GB, free: 3.953 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0111/0.4319, allocations: 3.038 MB / 0.5473 GB, free: 3.102 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006538/0.4385, allocations: 2.017 MB / 0.5493 GB, free: 2.91 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01412/0.4526, allocations: 9.215 MB / 0.5583 GB, free: 15.37 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0327/0.4854, allocations: 17.27 MB / 0.5751 GB, free: 5.938 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01036/0.4958, allocations: 4.772 MB / 0.5798 GB, free: 1.281 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01016/0.506, allocations: 5.237 MB / 0.5849 GB, free: 12.2 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004144/0.5102, allocations: 1.355 MB / 0.5862 GB, free: 10.84 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006291/0.5165, allocations: 1.715 MB / 0.5879 GB, free: 9.133 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004981/0.5215, allocations: 2.672 MB / 0.5905 GB, free: 6.496 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01075/0.5323, allocations: 5.081 MB / 0.5955 GB, free: 1.434 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02388/0.5562, allocations: 18.16 MB / 0.6132 GB, free: 15.61 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.812e-06/0.5562, allocations: 0 / 0.6132 GB, free: 15.61 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.315e-06/0.5562, allocations: 0 / 0.6132 GB, free: 15.61 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0005531/0.5568, allocations: 0 / 0.6132 GB, free: 15.61 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2183 * Number of variables: 2183 Notification: Performance of Generate backend data structure: time 0.03496/0.5918, allocations: 10.76 MB / 0.6237 GB, free: 4.84 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.111e-05/0.5918, allocations: 8.031 kB / 0.6237 GB, free: 4.832 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03248/0.6243, allocations: 5.674 MB / 0.6293 GB, free: 15.21 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01446/0.6388, allocations: 5.79 MB / 0.6349 GB, free: 9.402 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006745/0.6396, allocations: 0.5825 MB / 0.6355 GB, free: 8.832 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003567/0.6431, allocations: 0.7643 MB / 0.6362 GB, free: 8.074 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03375/0.6769, allocations: 12.76 MB / 0.6487 GB, free: 11.29 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004307/0.6774, allocations: 7.906 kB / 0.6487 GB, free: 11.28 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003053/0.6804, allocations: 330.9 kB / 0.649 GB, free: 10.97 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006045/0.6811, allocations: 0.4928 MB / 0.6495 GB, free: 10.47 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0273/0.7084, allocations: 12.25 MB / 0.6615 GB, free: 14.2 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07884/0.7873, allocations: 43.25 MB / 0.7037 GB, free: 1.859 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02583/0.8131, allocations: 25.19 MB / 0.7283 GB, free: 5.762 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005804/0.819, allocations: 2.978 MB / 0.7312 GB, free: 2.777 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006018/0.8197, allocations: 243.7 kB / 0.7315 GB, free: 2.516 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.2629/1.083, allocations: 2.576 MB / 0.734 GB, free: 165.9 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=391): time 1.145e-05/1.083, allocations: 0 / 0.734 GB, free: 165.9 MB / 0.5294 GB Notification: Performance of matching and sorting (n=397): time 0.04099/1.124, allocations: 18.1 MB / 0.7516 GB, free: 162.2 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001265/1.124, allocations: 357.7 kB / 0.752 GB, free: 161.8 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006759/1.131, allocations: 3.518 MB / 0.7554 GB, free: 161.2 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0007968/1.131, allocations: 91.89 kB / 0.7555 GB, free: 161.1 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002292/1.134, allocations: 3.378 MB / 0.7588 GB, free: 158.6 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001656/1.135, allocations: 1.346 MB / 0.7601 GB, free: 157.5 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001768/1.137, allocations: 1.082 MB / 0.7612 GB, free: 157 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 5.071e-05/1.137, allocations: 305.1 kB / 0.7615 GB, free: 156.7 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003862/1.141, allocations: 2.55 MB / 0.764 GB, free: 155.7 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004269/1.145, allocations: 4.514 MB / 0.7684 GB, free: 152.3 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008679/1.154, allocations: 7.45 MB / 0.7756 GB, free: 147.2 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.21e-05/1.154, allocations: 19.78 kB / 0.7757 GB, free: 147.2 MB / 0.5294 GB Notification: Performance of matching and sorting (n=721) (initialization): time 0.0141/1.168, allocations: 8.278 MB / 0.7837 GB, free: 143.9 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 8.193e-05/1.168, allocations: 56.08 kB / 0.7838 GB, free: 143.8 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001123/1.169, allocations: 61.41 kB / 0.7839 GB, free: 143.8 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002555/1.171, allocations: 1.001 MB / 0.7848 GB, free: 143.6 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004455/1.176, allocations: 1.258 MB / 0.7861 GB, free: 143.5 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01062/1.186, allocations: 8.805 MB / 0.7947 GB, free: 138.5 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004906/1.191, allocations: 364.4 kB / 0.795 GB, free: 138.4 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001098/1.192, allocations: 264 kB / 0.7953 GB, free: 138.4 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 275 * Number of states: 0 () * Number of discrete variables: 1 ($whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (664): * Single equations (assignments): 662 * Array equations: 0 * Algorithm blocks: 1 * 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 {(10,48,52.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.005328/1.198, allocations: 2.903 MB / 0.7981 GB, free: 135.9 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001127/1.199, allocations: 391.1 kB / 0.7985 GB, free: 135.5 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008771/1.208, allocations: 6.173 MB / 0.8045 GB, free: 129.7 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.548e-05/1.208, allocations: 40 kB / 0.8045 GB, free: 129.7 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.33e-05/1.208, allocations: 8 kB / 0.8045 GB, free: 129.6 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.125e-05/1.208, allocations: 23.92 kB / 0.8046 GB, free: 129.6 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02283/1.231, allocations: 14.64 MB / 0.8189 GB, free: 114.9 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.686e-05/1.231, allocations: 4 kB / 0.8189 GB, free: 114.9 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002521/1.233, allocations: 0.6867 MB / 0.8195 GB, free: 114.2 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002221/1.235, allocations: 0.8809 MB / 0.8204 GB, free: 113.4 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004707/1.236, allocations: 83.98 kB / 0.8205 GB, free: 113.3 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008674/1.245, allocations: 7.745 MB / 0.828 GB, free: 105.4 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.618e-06/1.245, allocations: 8.031 kB / 0.8281 GB, free: 105.4 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01174/1.256, allocations: 8.779 MB / 0.8366 GB, free: 96.48 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002639/1.259, allocations: 0.9099 MB / 0.8375 GB, free: 95.55 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001046/1.26, allocations: 75.98 kB / 0.8376 GB, free: 95.48 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002459/1.263, allocations: 203.8 kB / 0.8378 GB, free: 95.28 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005055/1.263, allocations: 267.1 kB / 0.838 GB, free: 95.02 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000191/1.263, allocations: 116 kB / 0.8381 GB, free: 94.9 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.003435/1.267, allocations: 2.363 MB / 0.8405 GB, free: 92.55 MB / 0.5294 GB Notification: Performance of sort global known variables: time 4.71e-07/1.267, allocations: 0.75 kB / 0.8405 GB, free: 92.55 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.006394/1.273, allocations: 1.451 MB / 0.8419 GB, free: 91.1 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 3 (smee.inertiaRotor.w,smee.rotorCage.port_p.reference.gamma,constantTorque.phi) * Number of discrete variables: 1 ($whenCondition1) * Number of discrete states: 1 ($whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (371): * Single equations (assignments): 369 * Array equations: 0 * Algorithm blocks: 1 * 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 {(10,46,50.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0009203/1.274, allocations: 251.5 kB / 0.8421 GB, free: 90.85 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.009424/1.283, allocations: 6.476 MB / 0.8484 GB, free: 84.36 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.141e-05/1.284, allocations: 4 kB / 0.8484 GB, free: 84.35 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.004588/1.288, allocations: 3.097 MB / 0.8515 GB, free: 81.23 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004361/1.293, allocations: 0.806 MB / 0.8523 GB, free: 80.46 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02155/1.314, allocations: 13.54 MB / 0.8655 GB, free: 66.81 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003611/1.318, allocations: 4.859 MB / 0.8702 GB, free: 61.91 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001635/1.319, allocations: 379.3 kB / 0.8706 GB, free: 61.55 MB / 0.5294 GB Notification: Performance of SimCode: time 2.024e-06/1.319, allocations: 0 / 0.8706 GB, free: 61.55 MB / 0.5294 GB Notification: Performance of Templates: time 0.3833/1.703, allocations: 132.3 MB / 0.9998 GB, free: 135.8 MB / 0.545 GB make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve4.makefile (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve4.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve4.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve4.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve4.sim & ./HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve4 -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve4.pipe 2>&1)