Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve3.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_VCurve3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve3") translateModel(HanserModelica.SynchronousMachines.SMEE_VCurve3,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009201/0.0009202, allocations: 92.16 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.293/1.293, allocations: 223.3 MB / 240 MB, free: 5.398 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.0009682/0.0009682, allocations: 180.5 kB / 291.3 MB, free: 2.059 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03517/0.03517, allocations: 8.809 MB / 351.2 MB, free: 4.559 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003436/0.0003436, allocations: 15.58 kB / 414.5 MB, free: 42.76 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06425/0.06461, allocations: 52.55 MB / 467 MB, free: 13.11 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_VCurve3): time 0.02236/0.08698, allocations: 23.95 MB / 491 MB, free: 5.047 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01241/0.0994, allocations: 7.79 MB / 498.8 MB, free: 13.23 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00203/0.1014, allocations: 159.6 kB / 498.9 MB, free: 13.08 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003293/0.1048, allocations: 1.824 MB / 0.489 GB, free: 11.25 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005511/0.1103, allocations: 2.762 MB / 0.4917 GB, free: 8.477 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003189/0.1135, allocations: 1.696 MB / 0.4934 GB, free: 6.785 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.008164/0.1217, allocations: 9.367 MB / 0.5025 GB, free: 13.39 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02402/0.1457, allocations: 17.63 MB / 0.5197 GB, free: 11.63 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003849/0.1495, allocations: 3.398 MB / 0.523 GB, free: 8.219 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004109/0.1537, allocations: 4.112 MB / 0.5271 GB, free: 4.09 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007016/0.1544, allocations: 0.5195 MB / 0.5276 GB, free: 3.57 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00174/0.1561, allocations: 0.8863 MB / 0.5284 GB, free: 2.684 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001269/0.1574, allocations: 1.697 MB / 0.5301 GB, free: 0.9805 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.1484/0.3058, allocations: 4.026 MB / 0.534 GB, free: 21.4 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01054/0.3164, allocations: 15.32 MB / 0.549 GB, free: 17.62 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.3164, allocations: 0 / 0.549 GB, free: 17.62 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.804e-06/0.3164, allocations: 1.344 kB / 0.549 GB, free: 17.62 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002136/0.3166, allocations: 2.969 kB / 0.549 GB, free: 17.62 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.02187/0.3385, allocations: 9.045 MB / 0.5578 GB, free: 13.09 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.628e-05/0.3385, allocations: 9.688 kB / 0.5578 GB, free: 13.09 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03118/0.3697, allocations: 5.669 MB / 0.5634 GB, free: 10.96 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008236/0.378, allocations: 5.676 MB / 0.5689 GB, free: 9.355 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002782/0.3783, allocations: 0.5786 MB / 0.5695 GB, free: 9.336 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001159/0.3794, allocations: 0.7678 MB / 0.5702 GB, free: 9.328 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01779/0.3972, allocations: 12.77 MB / 0.5827 GB, free: 6.137 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001632/0.3974, allocations: 11.7 kB / 0.5827 GB, free: 6.129 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008474/0.3983, allocations: 324.1 kB / 0.583 GB, free: 5.887 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003765/0.3987, allocations: 0.4898 MB / 0.5835 GB, free: 5.781 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01793/0.4166, allocations: 12.26 MB / 0.5955 GB, free: 10.3 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05548/0.4721, allocations: 43.86 MB / 0.6383 GB, free: 13.85 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02214/0.4943, allocations: 25.15 MB / 0.6629 GB, free: 1.82 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004198/0.4985, allocations: 2.978 MB / 0.6658 GB, free: 14.84 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003043/0.4988, allocations: 245.4 kB / 0.666 GB, free: 14.57 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003617/0.5024, allocations: 2.586 MB / 0.6685 GB, free: 11.92 MB / 462.1 MB Notification: Performance of pre-optimization done (n=391): time 5.54e-06/0.5025, allocations: 8 kB / 0.6685 GB, free: 11.91 MB / 462.1 MB Notification: Performance of matching and sorting (n=397): time 0.03552/0.538, allocations: 18.16 MB / 0.6863 GB, free: 9.648 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001404/0.5381, allocations: 363.1 kB / 0.6866 GB, free: 9.223 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004765/0.5429, allocations: 3.515 MB / 0.69 GB, free: 5.703 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002245/0.5431, allocations: 89.7 kB / 0.6901 GB, free: 5.609 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002001/0.5452, allocations: 3.376 MB / 0.6934 GB, free: 2.215 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009666/0.5461, allocations: 1.351 MB / 0.6947 GB, free: 0.875 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006119/0.5467, allocations: 442.2 kB / 0.6952 GB, free: 448 kB / 478.1 MB Notification: Performance of setup shared object (initialization): time 7.734e-05/0.5468, allocations: 305.1 kB / 0.6955 GB, free: 140 kB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0038/0.5506, allocations: 2.555 MB / 0.698 GB, free: 13.58 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004967/0.5556, allocations: 4.517 MB / 0.7024 GB, free: 8.207 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009087/0.5647, allocations: 7.462 MB / 0.7096 GB, free: 128 kB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.6e-05/0.5648, allocations: 16 kB / 0.7097 GB, free: 112 kB / 494.1 MB Notification: Performance of matching and sorting (n=721) (initialization): time 0.1688/0.7335, allocations: 8.278 MB / 0.7177 GB, free: 172.7 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.982e-05/0.7336, allocations: 59.36 kB / 0.7178 GB, free: 172.6 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.596e-05/0.7337, allocations: 63.97 kB / 0.7179 GB, free: 172.6 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002798/0.7365, allocations: 1.001 MB / 0.7188 GB, free: 172.4 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004074/0.7406, allocations: 1.266 MB / 0.7201 GB, free: 172.3 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01058/0.7512, allocations: 8.239 MB / 0.7281 GB, free: 167.8 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003524/0.7547, allocations: 361.9 kB / 0.7285 GB, free: 167.8 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003675/0.7551, allocations: 266 kB / 0.7287 GB, free: 167.7 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.003755/0.7589, allocations: 2.906 MB / 0.7316 GB, free: 166.2 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004947/0.7594, allocations: 386.1 kB / 0.7319 GB, free: 166.2 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009218/0.7686, allocations: 6.196 MB / 0.738 GB, free: 163.7 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.247e-05/0.7687, allocations: 38.81 kB / 0.738 GB, free: 163.7 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.258e-05/0.7687, allocations: 11.66 kB / 0.738 GB, free: 163.7 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.167e-05/0.7687, allocations: 19.08 kB / 0.738 GB, free: 163.7 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01821/0.7869, allocations: 14.94 MB / 0.7526 GB, free: 153 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.327e-05/0.7869, allocations: 4 kB / 0.7526 GB, free: 153 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00262/0.7896, allocations: 0.6845 MB / 0.7533 GB, free: 152.5 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002264/0.7919, allocations: 0.8798 MB / 0.7542 GB, free: 151.8 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002115/0.7921, allocations: 84.83 kB / 0.7543 GB, free: 151.7 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008909/0.801, allocations: 7.203 MB / 0.7613 GB, free: 144.9 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.779e-06/0.801, allocations: 8.031 kB / 0.7613 GB, free: 144.9 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01068/0.8117, allocations: 8.789 MB / 0.7699 GB, free: 135.9 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001435/0.8131, allocations: 0.9373 MB / 0.7708 GB, free: 135 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004699/0.8136, allocations: 72 kB / 0.7709 GB, free: 134.9 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001972/0.8156, allocations: 203.8 kB / 0.7711 GB, free: 134.7 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004406/0.8161, allocations: 270.2 kB / 0.7713 GB, free: 134.5 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002114/0.8163, allocations: 123.9 kB / 0.7714 GB, free: 134.3 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.002722/0.819, allocations: 2.355 MB / 0.7737 GB, free: 132 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.819, allocations: 4 kB / 0.7737 GB, free: 132 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.003724/0.8227, allocations: 1.456 MB / 0.7752 GB, free: 130.5 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.0004178/0.8232, allocations: 245.2 kB / 0.7754 GB, free: 130.3 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.007936/0.8311, allocations: 6.477 MB / 0.7817 GB, free: 123.8 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 3.938e-06/0.8311, allocations: 4 kB / 0.7817 GB, free: 123.8 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003974/0.8351, allocations: 3.083 MB / 0.7847 GB, free: 120.7 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005094/0.8402, allocations: 0.7739 MB / 0.7855 GB, free: 119.9 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01736/0.8576, allocations: 17.08 MB / 0.8022 GB, free: 102.7 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003684/0.8613, allocations: 4.861 MB / 0.8069 GB, free: 97.84 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001223/0.8625, allocations: 371.3 kB / 0.8073 GB, free: 97.48 MB / 494.1 MB Notification: Performance of SimCode: time 4.51e-07/0.8625, allocations: 11.66 kB / 0.8073 GB, free: 97.47 MB / 494.1 MB Notification: Performance of Templates: time 0.2729/1.135, allocations: 130.5 MB / 0.9347 GB, free: 134.6 MB / 494.1 MB make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve3.makefile (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve3.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve3.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve3.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve3.sim & ./HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve3 -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve3.pipe 2>&1)