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.004287/0.004288, allocations: 95.92 kB / 15.73 MB, free: 6.039 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.311/1.311, allocations: 222.9 MB / 239.4 MB, free: 4.551 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.001166/0.001167, allocations: 184.5 kB / 289.7 MB, free: 2.262 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03546/0.03546, allocations: 8.796 MB / 348.6 MB, free: 4.621 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001302/0.001302, allocations: 80.22 kB / 464 MB, free: 13.18 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0869/0.08821, allocations: 51.56 MB / 0.5034 GB, free: 9.574 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_VCurve4): time 0.02263/0.1109, allocations: 25.45 MB / 0.5283 GB, free: 8 kB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.1921/0.303, allocations: 7.941 MB / 0.536 GB, free: 4.758 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002997/0.306, allocations: 174.3 kB / 0.5362 GB, free: 4.758 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01325/0.3193, allocations: 7.641 MB / 0.5437 GB, free: 3.863 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007648/0.3269, allocations: 3.048 MB / 0.5466 GB, free: 3.008 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004317/0.3313, allocations: 2.01 MB / 0.5486 GB, free: 2.816 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01235/0.3436, allocations: 9.223 MB / 0.5576 GB, free: 15.3 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02145/0.3651, allocations: 17.27 MB / 0.5745 GB, free: 5.898 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006203/0.3714, allocations: 4.744 MB / 0.5791 GB, free: 1.27 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005964/0.3773, allocations: 5.24 MB / 0.5842 GB, free: 12.18 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001695/0.3791, allocations: 1.355 MB / 0.5856 GB, free: 10.82 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002898/0.382, allocations: 1.718 MB / 0.5872 GB, free: 9.113 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001868/0.3838, allocations: 2.672 MB / 0.5898 GB, free: 6.477 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004768/0.3886, allocations: 5.082 MB / 0.5948 GB, free: 1.414 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01787/0.4065, allocations: 18.2 MB / 0.6126 GB, free: 15.55 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.723e-06/0.4066, allocations: 4 kB / 0.6126 GB, free: 15.54 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.164e-06/0.4066, allocations: 0 / 0.6126 GB, free: 15.54 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0004538/0.407, allocations: 0 / 0.6126 GB, free: 15.54 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.02907/0.4361, allocations: 10.94 MB / 0.6233 GB, free: 4.582 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.562e-05/0.4361, allocations: 12.03 kB / 0.6233 GB, free: 4.57 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03022/0.4664, allocations: 5.716 MB / 0.6289 GB, free: 14.91 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01145/0.4779, allocations: 5.821 MB / 0.6345 GB, free: 9.074 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005401/0.4784, allocations: 0.5767 MB / 0.6351 GB, free: 8.508 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002566/0.481, allocations: 0.764 MB / 0.6359 GB, free: 7.754 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02696/0.508, allocations: 12.77 MB / 0.6483 GB, free: 10.97 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002238/0.5082, allocations: 11.94 kB / 0.6483 GB, free: 10.96 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001539/0.5098, allocations: 320.7 kB / 0.6486 GB, free: 10.66 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004637/0.5102, allocations: 0.4967 MB / 0.6491 GB, free: 10.16 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02232/0.5326, allocations: 12.25 MB / 0.6611 GB, free: 13.88 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06266/0.5953, allocations: 43.35 MB / 0.7034 GB, free: 1.453 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02097/0.6163, allocations: 25.19 MB / 0.728 GB, free: 5.359 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004941/0.6213, allocations: 2.976 MB / 0.7309 GB, free: 2.375 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004871/0.6218, allocations: 244.2 kB / 0.7312 GB, free: 2.113 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.3599/0.9817, allocations: 2.576 MB / 0.7337 GB, free: 164 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=391): time 7.153e-06/0.9818, allocations: 0 / 0.7337 GB, free: 164 MB / 0.5294 GB Notification: Performance of matching and sorting (n=397): time 0.03563/1.017, allocations: 18.41 MB / 0.7517 GB, free: 160.3 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001008/1.018, allocations: 359.5 kB / 0.752 GB, free: 160 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005466/1.023, allocations: 3.52 MB / 0.7554 GB, free: 159.1 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.000552/1.024, allocations: 92.36 kB / 0.7555 GB, free: 159.1 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.001721/1.025, allocations: 3.495 MB / 0.7589 GB, free: 156.9 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001078/1.026, allocations: 1.419 MB / 0.7603 GB, free: 155.8 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00152/1.028, allocations: 1.084 MB / 0.7614 GB, free: 155.3 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 4.582e-05/1.028, allocations: 309.1 kB / 0.7617 GB, free: 155 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003748/1.032, allocations: 2.548 MB / 0.7642 GB, free: 154 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004306/1.036, allocations: 4.515 MB / 0.7686 GB, free: 150.5 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007126/1.043, allocations: 7.448 MB / 0.7758 GB, free: 145.5 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.749e-05/1.043, allocations: 19.78 kB / 0.7759 GB, free: 145.5 MB / 0.5294 GB Notification: Performance of matching and sorting (n=721) (initialization): time 0.01125/1.054, allocations: 8.292 MB / 0.784 GB, free: 142.1 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 5.688e-05/1.055, allocations: 58.27 kB / 0.784 GB, free: 142.1 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.857e-05/1.055, allocations: 68.88 kB / 0.7841 GB, free: 142.1 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002324/1.057, allocations: 0.9986 MB / 0.7851 GB, free: 141.9 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003794/1.061, allocations: 1.253 MB / 0.7863 GB, free: 141.7 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009881/1.071, allocations: 8.82 MB / 0.7949 GB, free: 136.8 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00408/1.075, allocations: 367.6 kB / 0.7952 GB, free: 136.7 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005474/1.075, allocations: 266.2 kB / 0.7955 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.003754/1.079, allocations: 2.896 MB / 0.7983 GB, free: 134.1 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008473/1.08, allocations: 415.8 kB / 0.7987 GB, free: 133.7 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008119/1.088, allocations: 6.177 MB / 0.8048 GB, free: 127.6 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.245e-05/1.088, allocations: 40 kB / 0.8048 GB, free: 127.6 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.254e-05/1.088, allocations: 12 kB / 0.8048 GB, free: 127.6 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.049e-05/1.088, allocations: 19.92 kB / 0.8048 GB, free: 127.6 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01859/1.107, allocations: 14.66 MB / 0.8191 GB, free: 112.9 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.27e-05/1.107, allocations: 4 kB / 0.8191 GB, free: 112.9 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002367/1.109, allocations: 0.6826 MB / 0.8198 GB, free: 112.2 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002081/1.111, allocations: 0.8773 MB / 0.8207 GB, free: 111.3 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000212/1.112, allocations: 83.97 kB / 0.8207 GB, free: 111.2 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008408/1.12, allocations: 7.752 MB / 0.8283 GB, free: 103.3 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.118e-06/1.12, allocations: 8.031 kB / 0.8283 GB, free: 103.3 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01031/1.13, allocations: 8.804 MB / 0.8369 GB, free: 94.39 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001768/1.132, allocations: 0.9239 MB / 0.8378 GB, free: 93.45 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005606/1.133, allocations: 76 kB / 0.8379 GB, free: 93.38 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001818/1.134, allocations: 197.8 kB / 0.8381 GB, free: 93.18 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004696/1.135, allocations: 271.1 kB / 0.8383 GB, free: 92.92 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001906/1.135, allocations: 116 kB / 0.8385 GB, free: 92.8 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.002653/1.138, allocations: 2.359 MB / 0.8408 GB, free: 90.45 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2.01e-07/1.138, allocations: 0 / 0.8408 GB, free: 90.45 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.004353/1.142, allocations: 1.461 MB / 0.8422 GB, free: 88.99 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.0004296/1.143, allocations: 246.4 kB / 0.8424 GB, free: 88.75 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.008163/1.151, allocations: 6.488 MB / 0.8488 GB, free: 82.23 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 9.218e-06/1.151, allocations: 0.875 kB / 0.8488 GB, free: 82.23 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.004011/1.155, allocations: 3.093 MB / 0.8518 GB, free: 79.11 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003693/1.159, allocations: 0.8121 MB / 0.8526 GB, free: 78.34 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01788/1.176, allocations: 13.95 MB / 0.8662 GB, free: 64.29 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003518/1.18, allocations: 5.006 MB / 0.8711 GB, free: 59.24 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.0036/1.184, allocations: 1.59 MB / 0.8726 GB, free: 57.64 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009104/1.185, allocations: 327.4 kB / 0.8729 GB, free: 57.33 MB / 0.5294 GB Notification: Performance of SimCode: time 5.11e-07/1.185, allocations: 0 / 0.8729 GB, free: 57.33 MB / 0.5294 GB Notification: Performance of Templates: time 0.07656/1.261, allocations: 59 MB / 0.9306 GB, free: 14.71 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)