Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001291/0.001291, allocations: 115.2 kB / 17.13 MB, free: 5.914 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.451/1.451, allocations: 225.6 MB / 245.5 MB, free: 14.16 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001499/0.001499, allocations: 194.5 kB / 300.5 MB, free: 9.828 MB / 238.1 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.04384/0.04384, allocations: 8.934 MB / 364.3 MB, free: 10.17 MB / 302.1 MB " [Timeout remaining time 180] 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_Synchronization1,tolerance=1e-08,outputFormat="empty",numberOfIntervals=2999,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1") translateModel(HanserModelica.SynchronousMachines.SMEE_Synchronization1,tolerance=1e-08,outputFormat="empty",numberOfIntervals=2999,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002548/0.002548, allocations: 85.89 kB / 487.3 MB, free: 11.69 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0917/0.09425, allocations: 54.41 MB / 0.529 GB, free: 0.8203 MB / 334.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Synchronization1): time 0.01919/0.1134, allocations: 15.88 MB / 0.5445 GB, free: 0.8555 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0102/0.1236, allocations: 5.286 MB / 0.5496 GB, free: 11.55 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00235/0.126, allocations: 95.69 kB / 0.5497 GB, free: 11.45 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003528/0.1295, allocations: 1.25 MB / 0.5509 GB, free: 10.2 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/SynchronousMachines/SMEE_Synchronization1.mo:18:3-19:30:writable] Warning: Conditional component 'ir' is used in a non-connect context. Notification: Performance of NFTyping.typeBindings: time 0.004683/0.1342, allocations: 1.604 MB / 0.5525 GB, free: 8.582 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002319/0.1365, allocations: 0.9755 MB / 0.5535 GB, free: 7.609 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005904/0.1424, allocations: 4.697 MB / 0.5581 GB, free: 2.895 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00335/0.1458, allocations: 2.455 MB / 0.5604 GB, free: 380 kB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002925/0.1487, allocations: 2.118 MB / 0.5625 GB, free: 14.24 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003436/0.1521, allocations: 2.463 MB / 0.5649 GB, free: 11.77 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007914/0.1529, allocations: 0.5742 MB / 0.5655 GB, free: 11.2 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001514/0.1544, allocations: 0.7887 MB / 0.5663 GB, free: 10.41 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001279/0.1557, allocations: 1.301 MB / 0.5675 GB, free: 9.105 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00383/0.1595, allocations: 2.439 MB / 0.5699 GB, free: 6.656 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009231/0.1688, allocations: 7.525 MB / 0.5773 GB, free: 15.11 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.99e-06/0.1688, allocations: 0 / 0.5773 GB, free: 15.11 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.1688, allocations: 0 / 0.5773 GB, free: 15.11 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0001854/0.169, allocations: 0 / 0.5773 GB, free: 15.11 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 965 * Number of variables: 965 Notification: Performance of Generate backend data structure: time 0.01344/0.1824, allocations: 5.082 MB / 0.5822 GB, free: 9.945 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.049e-05/0.1824, allocations: 12.03 kB / 0.5822 GB, free: 9.934 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005462/0.1879, allocations: 0.9702 MB / 0.5832 GB, free: 8.961 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005918/0.1938, allocations: 2.842 MB / 0.586 GB, free: 6.066 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002271/0.1941, allocations: 283.8 kB / 0.5862 GB, free: 5.789 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006655/0.1947, allocations: 368.1 kB / 0.5866 GB, free: 5.43 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009008/0.2037, allocations: 4.772 MB / 0.5912 GB, free: 0.6133 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.347e-05/0.2038, allocations: 4 kB / 0.5912 GB, free: 0.6094 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000358/0.2042, allocations: 151.9 kB / 0.5914 GB, free: 472 kB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001568/0.2043, allocations: 151.4 kB / 0.5915 GB, free: 320 kB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007506/0.2118, allocations: 4.054 MB / 0.5955 GB, free: 12.25 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02501/0.2368, allocations: 15.6 MB / 0.6107 GB, free: 12.16 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007443/0.2443, allocations: 6.776 MB / 0.6173 GB, free: 4.504 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00256/0.2468, allocations: 1.387 MB / 0.6187 GB, free: 3.117 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007627/0.2545, allocations: 4.165 MB / 0.6228 GB, free: 14.83 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.734e-05/0.2545, allocations: 55.88 kB / 0.6228 GB, free: 14.77 MB / 446.1 MB Notification: Performance of pre-optimization done (n=137): time 2.806e-06/0.2545, allocations: 0 / 0.6228 GB, free: 14.77 MB / 446.1 MB Notification: Performance of matching and sorting (n=159): time 0.01353/0.2681, allocations: 6.4 MB / 0.6291 GB, free: 8.203 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.948e-05/0.2682, allocations: 72.72 kB / 0.6291 GB, free: 8.121 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003453/0.2716, allocations: 2.187 MB / 0.6313 GB, free: 5.902 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001477/0.2718, allocations: 49.7 kB / 0.6313 GB, free: 5.848 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001429/0.2732, allocations: 1.779 MB / 0.6331 GB, free: 4.051 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005357/0.2737, allocations: 0.5733 MB / 0.6336 GB, free: 3.473 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006962/0.2744, allocations: 412 kB / 0.634 GB, free: 3.062 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001262/0.2745, allocations: 305.1 kB / 0.6343 GB, free: 2.762 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001494/0.276, allocations: 0.832 MB / 0.6351 GB, free: 1.926 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002154/0.2782, allocations: 1.582 MB / 0.6367 GB, free: 15.99 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003771/0.282, allocations: 2.585 MB / 0.6392 GB, free: 13.06 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.01e-05/0.282, allocations: 11.94 kB / 0.6392 GB, free: 13.05 MB / 462.1 MB Notification: Performance of matching and sorting (n=284) (initialization): time 0.005719/0.2877, allocations: 3.038 MB / 0.6422 GB, free: 9.977 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.591e-05/0.2877, allocations: 19.94 kB / 0.6422 GB, free: 9.957 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.55e-05/0.2878, allocations: 24 kB / 0.6422 GB, free: 9.934 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009402/0.2887, allocations: 299 kB / 0.6425 GB, free: 9.633 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001966/0.2907, allocations: 0.507 MB / 0.643 GB, free: 9.125 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005749/0.2964, allocations: 4.866 MB / 0.6477 GB, free: 3.98 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001874/0.2983, allocations: 108 kB / 0.6478 GB, free: 3.875 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000199/0.2985, allocations: 104 kB / 0.6479 GB, free: 3.773 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 111 * Number of states: 0 () * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (264): * Single equations (assignments): 261 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,13,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002156/0.3006, allocations: 1.122 MB / 0.649 GB, free: 2.641 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005426/0.3012, allocations: 246.5 kB / 0.6493 GB, free: 2.398 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1982/0.4994, allocations: 2.387 MB / 0.6516 GB, free: 106.6 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.266e-05/0.4995, allocations: 15.25 kB / 0.6516 GB, free: 106.6 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.685e-05/0.4995, allocations: 4.656 kB / 0.6516 GB, free: 106.6 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.513e-05/0.4995, allocations: 8.281 kB / 0.6516 GB, free: 106.6 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009446/0.509, allocations: 5.685 MB / 0.6572 GB, free: 104.9 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.424e-06/0.509, allocations: 4.594 kB / 0.6572 GB, free: 104.9 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001225/0.5102, allocations: 279.2 kB / 0.6574 GB, free: 104.9 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008684/0.5111, allocations: 308.8 kB / 0.6577 GB, free: 104.8 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.823e-05/0.5112, allocations: 38.52 kB / 0.6578 GB, free: 104.8 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005322/0.5165, allocations: 7.022 MB / 0.6646 GB, free: 98.89 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.053e-06/0.5165, allocations: 1.312 kB / 0.6646 GB, free: 98.89 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004441/0.5209, allocations: 3.493 MB / 0.668 GB, free: 97.27 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007979/0.5217, allocations: 0.4927 MB / 0.6685 GB, free: 97.04 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002566/0.522, allocations: 32.59 kB / 0.6686 GB, free: 97.02 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001081/0.5231, allocations: 73.77 kB / 0.6686 GB, free: 97 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002345/0.5233, allocations: 113.6 kB / 0.6687 GB, free: 96.98 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.381e-05/0.5234, allocations: 51.36 kB / 0.6688 GB, free: 96.97 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001764/0.5251, allocations: 1.47 MB / 0.6702 GB, free: 96.38 MB / 462.1 MB Notification: Performance of sort global known variables: time 8e-08/0.5251, allocations: 0 / 0.6702 GB, free: 96.38 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002003/0.5271, allocations: 0.6504 MB / 0.6709 GB, free: 96.32 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 6 (smee.inertiaRotor.w,smee.stator.core.Phi.re,smee.stator.core.Phi.im,smee.stator.stray.Phi.re,smee.stator.stray.Phi.im,constantTorque.phi) * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (133): * Single equations (assignments): 130 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(2,12,100.0%), (1,5,100.0%), (1,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.00026/0.5274, allocations: 167.2 kB / 0.671 GB, free: 96.2 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.003132/0.5305, allocations: 2.366 MB / 0.6733 GB, free: 95.11 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.526e-06/0.5305, allocations: 3.844 kB / 0.6733 GB, free: 95.11 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001686/0.5322, allocations: 1.334 MB / 0.6746 GB, free: 94.38 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002179/0.5344, allocations: 0.5734 MB / 0.6752 GB, free: 94.18 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008687/0.5431, allocations: 6.53 MB / 0.6816 GB, free: 90.46 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001569/0.5447, allocations: 2.447 MB / 0.684 GB, free: 88.22 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006161/0.5453, allocations: 175.4 kB / 0.6841 GB, free: 88.05 MB / 462.1 MB Notification: Performance of SimCode: time 1.122e-06/0.5453, allocations: 0 / 0.6841 GB, free: 88.05 MB / 462.1 MB Notification: Performance of Templates: time 0.08125/0.6265, allocations: 100.4 MB / 0.7822 GB, free: 3.711 MB / 478.1 MB " [Timeout remaining time 659] make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1.makefile [Timeout 660] (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1.sim & ./HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1 -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization1.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 12.520367584889755] Failed to read output from testmodel.py, exit status != 0: 0.7793469580356032 0.648315335 0.47650153900000003 Calling exit ...