Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1.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_VCurve1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1") translateModel(HanserModelica.SynchronousMachines.SMEE_VCurve1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001205/0.001205, allocations: 117.2 kB / 16.37 MB, free: 6.004 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.362/1.362, allocations: 222.9 MB / 240 MB, free: 4.5 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.001375/0.001375, allocations: 184.5 kB / 290.3 MB, free: 2.23 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03445/0.03445, allocations: 8.8 MB / 349.3 MB, free: 4.598 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001631/0.001631, allocations: 78.22 kB / 412.5 MB, free: 41.71 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07922/0.08086, allocations: 51.57 MB / 464.1 MB, free: 13.52 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_VCurve1): time 0.0241/0.105, allocations: 25.43 MB / 489.5 MB, free: 3.969 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01643/0.1215, allocations: 7.932 MB / 497.5 MB, free: 12.01 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006282/0.1278, allocations: 175.5 kB / 497.6 MB, free: 11.84 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02367/0.1515, allocations: 7.649 MB / 0.4934 GB, free: 4.172 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01491/0.1665, allocations: 3.047 MB / 0.4964 GB, free: 1.113 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007406/0.1739, allocations: 2.021 MB / 0.4984 GB, free: 15.1 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01831/0.1922, allocations: 9.228 MB / 0.5074 GB, free: 5.84 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02936/0.2216, allocations: 17.26 MB / 0.5242 GB, free: 4.43 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2335/0.4551, allocations: 4.744 MB / 0.5289 GB, free: 19.79 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008995/0.4642, allocations: 5.237 MB / 0.534 GB, free: 19.61 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004654/0.4689, allocations: 1.353 MB / 0.5353 GB, free: 19.61 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006682/0.4756, allocations: 1.716 MB / 0.537 GB, free: 19.61 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004898/0.4805, allocations: 2.67 MB / 0.5396 GB, free: 19.32 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01213/0.4927, allocations: 5.083 MB / 0.5446 GB, free: 18.17 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02578/0.5185, allocations: 18.16 MB / 0.5623 GB, free: 13.36 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.334e-06/0.5185, allocations: 0 / 0.5623 GB, free: 13.36 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.215e-06/0.5185, allocations: 3.125 kB / 0.5623 GB, free: 13.36 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0006395/0.5192, allocations: 0 / 0.5623 GB, free: 13.36 MB / 366.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.03705/0.5563, allocations: 10.75 MB / 0.5728 GB, free: 6.996 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.796e-05/0.5563, allocations: 10.31 kB / 0.5728 GB, free: 6.996 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0327/0.589, allocations: 5.673 MB / 0.5783 GB, free: 4.457 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01349/0.6025, allocations: 5.792 MB / 0.584 GB, free: 0.6211 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004586/0.603, allocations: 0.5845 MB / 0.5846 GB, free: 372 kB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00361/0.6067, allocations: 0.7592 MB / 0.5853 GB, free: 120 kB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03534/0.642, allocations: 12.76 MB / 0.5978 GB, free: 3.355 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000331/0.6424, allocations: 12.53 kB / 0.5978 GB, free: 3.344 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003225/0.6456, allocations: 325.6 kB / 0.5981 GB, free: 3.039 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005977/0.6462, allocations: 0.5002 MB / 0.5986 GB, free: 2.539 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03025/0.6765, allocations: 12.25 MB / 0.6106 GB, free: 6.27 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08092/0.7575, allocations: 43.24 MB / 0.6528 GB, free: 10.42 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02364/0.7812, allocations: 25.19 MB / 0.6774 GB, free: 14.41 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005184/0.7864, allocations: 2.972 MB / 0.6803 GB, free: 11.43 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004356/0.7869, allocations: 241.7 kB / 0.6805 GB, free: 11.17 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00409/0.791, allocations: 2.586 MB / 0.683 GB, free: 8.52 MB / 478.1 MB Notification: Performance of pre-optimization done (n=391): time 5.58e-06/0.791, allocations: 0 / 0.683 GB, free: 8.52 MB / 478.1 MB Notification: Performance of matching and sorting (n=397): time 0.03724/0.8282, allocations: 18.1 MB / 0.7007 GB, free: 6.316 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001683/0.8284, allocations: 358.9 kB / 0.7011 GB, free: 5.895 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005701/0.8341, allocations: 3.522 MB / 0.7045 GB, free: 2.367 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005538/0.8347, allocations: 89.7 kB / 0.7046 GB, free: 2.273 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.1953/1.03, allocations: 3.368 MB / 0.7079 GB, free: 165.6 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00213/1.032, allocations: 1.35 MB / 0.7092 GB, free: 164.9 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003104/1.035, allocations: 1.089 MB / 0.7103 GB, free: 164.8 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 5.516e-05/1.035, allocations: 307.2 kB / 0.7105 GB, free: 164.5 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004079/1.039, allocations: 2.544 MB / 0.713 GB, free: 164.5 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00558/1.045, allocations: 4.512 MB / 0.7174 GB, free: 162.2 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01023/1.055, allocations: 7.449 MB / 0.7247 GB, free: 159.7 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001122/1.055, allocations: 17.84 kB / 0.7247 GB, free: 159.7 MB / 494.1 MB Notification: Performance of matching and sorting (n=721) (initialization): time 0.01473/1.07, allocations: 8.274 MB / 0.7328 GB, free: 157.9 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.466e-05/1.07, allocations: 58.52 kB / 0.7329 GB, free: 157.9 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001129/1.07, allocations: 59.91 kB / 0.7329 GB, free: 157.9 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002447/1.073, allocations: 0.9996 MB / 0.7339 GB, free: 157.7 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004269/1.077, allocations: 1.261 MB / 0.7351 GB, free: 157.5 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01118/1.088, allocations: 8.805 MB / 0.7437 GB, free: 152.6 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006126/1.095, allocations: 360.6 kB / 0.7441 GB, free: 152.4 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001638/1.096, allocations: 263.8 kB / 0.7443 GB, free: 152.4 MB / 494.1 MB 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.008253/1.105, allocations: 2.904 MB / 0.7472 GB, free: 150.8 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001218/1.106, allocations: 391.1 kB / 0.7475 GB, free: 150.6 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01537/1.121, allocations: 6.173 MB / 0.7536 GB, free: 147.7 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.428e-05/1.121, allocations: 43.94 kB / 0.7536 GB, free: 147.7 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.588e-05/1.121, allocations: 23.78 kB / 0.7536 GB, free: 147.7 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.021e-05/1.121, allocations: 18.66 kB / 0.7536 GB, free: 147.7 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04585/1.167, allocations: 14.63 MB / 0.7679 GB, free: 135.6 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.271e-05/1.167, allocations: 4 kB / 0.7679 GB, free: 135.6 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00528/1.173, allocations: 0.6806 MB / 0.7686 GB, free: 135.1 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004431/1.177, allocations: 0.8755 MB / 0.7695 GB, free: 134.3 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005752/1.178, allocations: 87.97 kB / 0.7695 GB, free: 134.3 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00963/1.187, allocations: 7.75 MB / 0.7771 GB, free: 126.4 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.34e-06/1.187, allocations: 7.938 kB / 0.7771 GB, free: 126.4 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01167/1.199, allocations: 8.785 MB / 0.7857 GB, free: 117.5 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002485/1.201, allocations: 0.9062 MB / 0.7866 GB, free: 116.5 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001256/1.203, allocations: 76 kB / 0.7867 GB, free: 116.5 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002625/1.205, allocations: 193.3 kB / 0.7868 GB, free: 116.3 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005057/1.206, allocations: 275.1 kB / 0.7871 GB, free: 116 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002078/1.206, allocations: 116 kB / 0.7872 GB, free: 115.9 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003217/1.209, allocations: 2.363 MB / 0.7895 GB, free: 113.5 MB / 494.1 MB Notification: Performance of sort global known variables: time 3.8e-07/1.209, allocations: 0 / 0.7895 GB, free: 113.5 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.004814/1.214, allocations: 1.449 MB / 0.7909 GB, free: 112.1 MB / 494.1 MB 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.0005327/1.215, allocations: 252.7 kB / 0.7912 GB, free: 111.8 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.008579/1.223, allocations: 6.49 MB / 0.7975 GB, free: 105.3 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 5.761e-06/1.223, allocations: 0 / 0.7975 GB, free: 105.3 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004026/1.227, allocations: 3.08 MB / 0.8005 GB, free: 102.2 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003894/1.231, allocations: 0.8261 MB / 0.8013 GB, free: 101.5 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02241/1.254, allocations: 13.74 MB / 0.8147 GB, free: 87.64 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004174/1.258, allocations: 5.004 MB / 0.8196 GB, free: 82.59 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.00415/1.262, allocations: 1.593 MB / 0.8212 GB, free: 81.02 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00138/1.264, allocations: 331.4 kB / 0.8215 GB, free: 80.7 MB / 494.1 MB Notification: Performance of SimCode: time 3.927e-06/1.264, allocations: 0 / 0.8215 GB, free: 80.7 MB / 494.1 MB Notification: Performance of Templates: time 0.08825/1.352, allocations: 56.84 MB / 0.877 GB, free: 24.3 MB / 494.1 MB make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1.makefile (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1.sim & ./HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1 -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1.pipe 2>&1)