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.001291/0.001296, allocations: 109.1 kB / 16.41 MB, free: 6.488 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.395 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.001455/0.001455, allocations: 184.5 kB / 290.4 MB, free: 2.121 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03411/0.03411, allocations: 8.799 MB / 349.3 MB, free: 4.59 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001615/0.001615, allocations: 75.88 kB / 464.6 MB, free: 13.02 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09547/0.0971, allocations: 51.57 MB / 0.5041 GB, free: 9.422 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_VCurve4): time 0.2312/0.3283, allocations: 25.44 MB / 0.5289 GB, free: 4.883 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01426/0.3426, allocations: 7.947 MB / 0.5367 GB, free: 4.789 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0054/0.3481, allocations: 173 kB / 0.5369 GB, free: 4.789 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01629/0.3644, allocations: 7.647 MB / 0.5443 GB, free: 3.863 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01025/0.3747, allocations: 3.046 MB / 0.5473 GB, free: 3.008 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0061/0.3808, allocations: 2.022 MB / 0.5493 GB, free: 2.809 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01314/0.3939, allocations: 9.211 MB / 0.5583 GB, free: 15.37 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02829/0.4223, allocations: 17.27 MB / 0.5752 GB, free: 5.926 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00927/0.4316, allocations: 4.762 MB / 0.5798 GB, free: 1.281 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009273/0.4409, allocations: 5.235 MB / 0.5849 GB, free: 12.19 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0041/0.4451, allocations: 1.352 MB / 0.5862 GB, free: 10.84 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006558/0.4517, allocations: 1.719 MB / 0.5879 GB, free: 9.133 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004934/0.4566, allocations: 2.677 MB / 0.5905 GB, free: 6.492 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01132/0.468, allocations: 5.076 MB / 0.5955 GB, free: 1.434 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02454/0.4926, allocations: 18.17 MB / 0.6132 GB, free: 15.62 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.033e-06/0.4927, allocations: 0 / 0.6132 GB, free: 15.62 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.894e-06/0.4927, allocations: 0 / 0.6132 GB, free: 15.62 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0004635/0.4931, allocations: 0 / 0.6132 GB, free: 15.62 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.03466/0.5278, allocations: 10.76 MB / 0.6237 GB, free: 4.855 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.872e-05/0.5279, allocations: 8.031 kB / 0.6237 GB, free: 4.848 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03352/0.5614, allocations: 5.674 MB / 0.6293 GB, free: 15.23 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01314/0.5746, allocations: 5.794 MB / 0.6349 GB, free: 9.418 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006931/0.5753, allocations: 0.5826 MB / 0.6355 GB, free: 8.848 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003471/0.5788, allocations: 0.7682 MB / 0.6363 GB, free: 8.086 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03344/0.6123, allocations: 12.76 MB / 0.6487 GB, free: 11.31 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003746/0.6127, allocations: 19.83 kB / 0.6487 GB, free: 11.29 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002579/0.6153, allocations: 321.6 kB / 0.649 GB, free: 10.98 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006251/0.6159, allocations: 0.4967 MB / 0.6495 GB, free: 10.48 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02774/0.6437, allocations: 12.25 MB / 0.6615 GB, free: 14.21 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0826/0.7264, allocations: 43.25 MB / 0.7037 GB, free: 1.879 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02569/0.7521, allocations: 25.2 MB / 0.7283 GB, free: 5.777 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005769/0.7579, allocations: 2.98 MB / 0.7312 GB, free: 2.789 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005775/0.7586, allocations: 242.8 kB / 0.7315 GB, free: 2.527 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.4091/1.168, allocations: 2.577 MB / 0.734 GB, free: 164.2 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=391): time 1.111e-05/1.168, allocations: 0 / 0.734 GB, free: 164.2 MB / 0.5294 GB Notification: Performance of matching and sorting (n=397): time 0.04082/1.209, allocations: 18.1 MB / 0.7517 GB, free: 160.5 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001264/1.209, allocations: 356 kB / 0.752 GB, free: 160.1 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006705/1.215, allocations: 3.519 MB / 0.7554 GB, free: 159.4 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0007122/1.216, allocations: 89.05 kB / 0.7555 GB, free: 159.3 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002336/1.219, allocations: 3.377 MB / 0.7588 GB, free: 156.8 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001698/1.22, allocations: 1.354 MB / 0.7601 GB, free: 155.8 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001854/1.222, allocations: 1.081 MB / 0.7612 GB, free: 155.2 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 5.015e-05/1.222, allocations: 307.9 kB / 0.7615 GB, free: 154.9 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003938/1.226, allocations: 2.545 MB / 0.764 GB, free: 154 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004411/1.231, allocations: 4.513 MB / 0.7684 GB, free: 150.5 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008101/1.239, allocations: 7.453 MB / 0.7757 GB, free: 145.5 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.45e-05/1.239, allocations: 23.75 kB / 0.7757 GB, free: 145.5 MB / 0.5294 GB Notification: Performance of matching and sorting (n=721) (initialization): time 0.01305/1.252, allocations: 8.271 MB / 0.7838 GB, free: 142.1 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001128/1.252, allocations: 57.39 kB / 0.7838 GB, free: 142.1 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001108/1.252, allocations: 58.97 kB / 0.7839 GB, free: 142.1 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002678/1.255, allocations: 0.9996 MB / 0.7848 GB, free: 141.9 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00461/1.259, allocations: 1.26 MB / 0.7861 GB, free: 141.7 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01203/1.271, allocations: 8.812 MB / 0.7947 GB, free: 136.8 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005235/1.277, allocations: 357.1 kB / 0.795 GB, free: 136.7 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001137/1.278, allocations: 273.2 kB / 0.7953 GB, free: 136.6 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.005931/1.284, allocations: 2.896 MB / 0.7981 GB, free: 134.1 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001434/1.285, allocations: 387.8 kB / 0.7985 GB, free: 133.7 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01091/1.296, allocations: 6.176 MB / 0.8045 GB, free: 127.8 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.026e-05/1.296, allocations: 40 kB / 0.8046 GB, free: 127.8 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.386e-05/1.296, allocations: 12.44 kB / 0.8046 GB, free: 127.8 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.608e-05/1.296, allocations: 23.92 kB / 0.8046 GB, free: 127.7 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02729/1.324, allocations: 14.64 MB / 0.8189 GB, free: 113 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.059e-05/1.324, allocations: 4 kB / 0.8189 GB, free: 113 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002776/1.327, allocations: 0.6826 MB / 0.8196 GB, free: 112.3 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002405/1.329, allocations: 0.8698 MB / 0.8204 GB, free: 111.5 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005204/1.33, allocations: 91.97 kB / 0.8205 GB, free: 111.4 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009578/1.339, allocations: 7.751 MB / 0.8281 GB, free: 103.5 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.642e-06/1.339, allocations: 4.875 kB / 0.8281 GB, free: 103.5 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01327/1.352, allocations: 8.775 MB / 0.8366 GB, free: 94.6 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002414/1.355, allocations: 0.9101 MB / 0.8375 GB, free: 93.66 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001253/1.356, allocations: 72 kB / 0.8376 GB, free: 93.59 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002812/1.359, allocations: 203.8 kB / 0.8378 GB, free: 93.39 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007079/1.36, allocations: 271.1 kB / 0.838 GB, free: 93.13 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003474/1.36, allocations: 112 kB / 0.8382 GB, free: 93.02 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.004187/1.364, allocations: 2.367 MB / 0.8405 GB, free: 90.66 MB / 0.5294 GB Notification: Performance of sort global known variables: time 3.21e-07/1.364, allocations: 0.75 kB / 0.8405 GB, free: 90.66 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.006718/1.371, allocations: 1.451 MB / 0.8419 GB, free: 89.21 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.0008255/1.372, allocations: 250.6 kB / 0.8421 GB, free: 88.96 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.01073/1.383, allocations: 6.478 MB / 0.8484 GB, free: 82.47 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.117e-05/1.383, allocations: 8.062 kB / 0.8485 GB, free: 82.46 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.005163/1.388, allocations: 3.085 MB / 0.8515 GB, free: 79.36 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006082/1.394, allocations: 0.8117 MB / 0.8523 GB, free: 78.58 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02732/1.421, allocations: 13.54 MB / 0.8655 GB, free: 64.94 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007052/1.429, allocations: 4.867 MB / 0.8702 GB, free: 60.03 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001959/1.43, allocations: 375.3 kB / 0.8706 GB, free: 59.67 MB / 0.5294 GB Notification: Performance of SimCode: time 1.623e-06/1.431, allocations: 0 / 0.8706 GB, free: 59.67 MB / 0.5294 GB Notification: Performance of Templates: time 0.376/1.807, allocations: 132.3 MB / 0.9998 GB, free: 135 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)