Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0007771/0.0007771, allocations: 80.48 kB / 19.93 MB, free: 4.633 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8607/0.8607, allocations: 177.1 MB / 200.2 MB, free: 5.93 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001055/0.001055, allocations: 152.6 kB / 256.7 MB, free: 13.33 MB / 250.7 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.1/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.1/package.mo): time 0.02179/0.02179, allocations: 6.656 MB / 319.8 MB, free: 26.77 MB / 266.7 MB " [Timeout remaining time 180] Using package HanserModelica with version 2.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.1/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(HanserModelica.SynchronousMachines.SMEE_Synchronization3,tolerance=1e-08,outputFormat="empty",numberOfIntervals=2999,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3") translateModel(HanserModelica.SynchronousMachines.SMEE_Synchronization3,tolerance=1e-08,outputFormat="empty",numberOfIntervals=2999,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.813e-06/1.813e-06, allocations: 0 / 446.7 MB, free: 36.97 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.048e-05/2.229e-05, allocations: 2.281 kB / 446.7 MB, free: 36.96 MB / 330.7 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Synchronization3): time 0.009088/0.00911, allocations: 14.34 MB / 461 MB, free: 22.55 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.007536/0.01665, allocations: 5.282 MB / 466.3 MB, free: 17.25 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001713/0.01836, allocations: 119.3 kB / 466.4 MB, free: 17.14 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001939/0.0203, allocations: 1.219 MB / 467.7 MB, free: 15.91 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002373/0.02267, allocations: 1.626 MB / 469.3 MB, free: 14.27 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001146/0.02382, allocations: 1.012 MB / 470.3 MB, free: 13.26 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.002632/0.02645, allocations: 4.975 MB / 475.3 MB, free: 8.262 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001568/0.02802, allocations: 1.909 MB / 477.2 MB, free: 6.289 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002196/0.03021, allocations: 3.189 MB / 480.4 MB, free: 3.094 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001497/0.03171, allocations: 2.061 MB / 482.4 MB, free: 1.027 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004242/0.03213, allocations: 0.5664 MB / 483 MB, free: 472 kB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007734/0.03291, allocations: 0.7925 MB / 483.8 MB, free: 15.67 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006656/0.03357, allocations: 1.336 MB / 485.1 MB, free: 14.33 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001276/0.03485, allocations: 1.66 MB / 486.8 MB, free: 12.66 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00473/0.03958, allocations: 7.615 MB / 494.4 MB, free: 5.027 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.03958, allocations: 0 / 494.4 MB, free: 5.027 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.263e-06/0.03958, allocations: 0 / 494.4 MB, free: 5.027 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0001416/0.03973, allocations: 0 / 494.4 MB, free: 5.027 MB / 346.7 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.007041/0.04677, allocations: 4.995 MB / 499.4 MB, free: 15.97 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.63e-05/0.0468, allocations: 8.031 kB / 499.4 MB, free: 15.96 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002529/0.04933, allocations: 0.9857 MB / 0.4887 GB, free: 14.98 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003412/0.05274, allocations: 2.789 MB / 0.4914 GB, free: 12.14 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001313/0.05287, allocations: 279.8 kB / 0.4916 GB, free: 11.87 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003429/0.05322, allocations: 368.3 kB / 0.492 GB, free: 11.51 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004978/0.05819, allocations: 4.935 MB / 0.4968 GB, free: 6.492 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.736e-05/0.05825, allocations: 7.891 kB / 0.4968 GB, free: 6.484 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002354/0.05849, allocations: 152 kB / 0.497 GB, free: 6.336 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003321/0.05882, allocations: 159.3 kB / 0.4971 GB, free: 6.18 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00426/0.06308, allocations: 4.042 MB / 0.5011 GB, free: 2.133 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01308/0.07616, allocations: 13.29 MB / 0.5141 GB, free: 4.441 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002968/0.07913, allocations: 2.731 MB / 0.5167 GB, free: 1.832 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002296/0.08142, allocations: 1.815 MB / 0.5185 GB, free: 20 kB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004101/0.08553, allocations: 3.658 MB / 0.5221 GB, free: 12.32 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.047e-05/0.08556, allocations: 47.88 kB / 0.5221 GB, free: 12.26 MB / 394.7 MB Notification: Performance of pre-optimization done (n=137): time 2.945e-06/0.08556, allocations: 0 / 0.5221 GB, free: 12.26 MB / 394.7 MB Notification: Performance of matching and sorting (n=159): time 0.008107/0.09367, allocations: 6.2 MB / 0.5282 GB, free: 6.016 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.795e-05/0.0937, allocations: 72.66 kB / 0.5282 GB, free: 5.934 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001908/0.09561, allocations: 2.026 MB / 0.5302 GB, free: 3.867 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 6.888e-05/0.09568, allocations: 49.7 kB / 0.5303 GB, free: 3.812 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008022/0.09648, allocations: 1.797 MB / 0.532 GB, free: 1.996 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005585/0.09704, allocations: 0.5694 MB / 0.5326 GB, free: 1.422 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003918/0.09743, allocations: 404.1 kB / 0.533 GB, free: 1.02 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 6.776e-05/0.0975, allocations: 301.1 kB / 0.5332 GB, free: 0.7227 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008966/0.0984, allocations: 0.836 MB / 0.5341 GB, free: 15.88 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001227/0.09962, allocations: 1.634 MB / 0.5357 GB, free: 13.89 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002253/0.1019, allocations: 2.608 MB / 0.5382 GB, free: 10.94 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.388e-06/0.1019, allocations: 8 kB / 0.5382 GB, free: 10.93 MB / 410.7 MB Notification: Performance of matching and sorting (n=284) (initialization): time 0.003377/0.1053, allocations: 3.034 MB / 0.5412 GB, free: 7.879 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.465e-05/0.1053, allocations: 16 kB / 0.5412 GB, free: 7.863 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.027e-05/0.1053, allocations: 24 kB / 0.5412 GB, free: 7.84 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005539/0.1059, allocations: 354.4 kB / 0.5415 GB, free: 7.484 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009403/0.1068, allocations: 0.4914 MB / 0.542 GB, free: 6.992 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003754/0.1106, allocations: 4.96 MB / 0.5469 GB, free: 1.84 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008325/0.1114, allocations: 108 kB / 0.547 GB, free: 1.734 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001023/0.1115, allocations: 108 kB / 0.5471 GB, free: 1.629 MB / 410.7 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 (261): * Single equations (assignments): 258 * 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,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001454/0.1129, allocations: 1.129 MB / 0.5482 GB, free: 500 kB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000195/0.1131, allocations: 230.5 kB / 0.5484 GB, free: 268 kB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002539/0.1157, allocations: 2.304 MB / 0.5507 GB, free: 13.93 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.454e-06/0.1157, allocations: 12 kB / 0.5507 GB, free: 13.92 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.274e-06/0.1157, allocations: 8 kB / 0.5507 GB, free: 13.91 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.204e-05/0.1157, allocations: 7.969 kB / 0.5507 GB, free: 13.91 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005419/0.1211, allocations: 4.848 MB / 0.5554 GB, free: 8.988 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.459e-06/0.1211, allocations: 0 / 0.5554 GB, free: 8.988 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006072/0.1217, allocations: 271.8 kB / 0.5557 GB, free: 8.723 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000525/0.1223, allocations: 358.2 kB / 0.556 GB, free: 8.363 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.81e-05/0.1223, allocations: 44.16 kB / 0.5561 GB, free: 8.32 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004626/0.127, allocations: 6.956 MB / 0.5628 GB, free: 1.062 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.127, allocations: 3.938 kB / 0.5629 GB, free: 1.059 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1482/0.2751, allocations: 3.416 MB / 0.5662 GB, free: 115.8 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007761/0.2759, allocations: 406.9 kB / 0.5666 GB, free: 115.8 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001764/0.2761, allocations: 30.42 kB / 0.5666 GB, free: 115.8 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006018/0.2767, allocations: 73.06 kB / 0.5667 GB, free: 115.8 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002458/0.2769, allocations: 127.9 kB / 0.5668 GB, free: 115.8 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.1e-05/0.277, allocations: 43.84 kB / 0.5668 GB, free: 115.8 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001549/0.2785, allocations: 1.315 MB / 0.5681 GB, free: 115.3 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.2785, allocations: 4.594 kB / 0.5681 GB, free: 115.3 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001435/0.28, allocations: 0.6528 MB / 0.5688 GB, free: 115.3 MB / 426.7 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 (130): * Single equations (assignments): 127 * 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,8,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.0002802/0.2802, allocations: 162.6 kB / 0.5689 GB, free: 115.2 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002204/0.2824, allocations: 2.339 MB / 0.5712 GB, free: 114.2 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.305e-06/0.2824, allocations: 0 / 0.5712 GB, free: 114.2 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001066/0.2835, allocations: 1.367 MB / 0.5725 GB, free: 113.4 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001125/0.2846, allocations: 480.3 kB / 0.573 GB, free: 113.3 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00615/0.2908, allocations: 6.367 MB / 0.5792 GB, free: 109.3 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001148/0.2919, allocations: 1.925 MB / 0.5811 GB, free: 107.8 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003343/0.2923, allocations: 175.6 kB / 0.5813 GB, free: 107.7 MB / 426.7 MB Notification: Performance of SimCode: time 7.82e-07/0.2923, allocations: 0 / 0.5813 GB, free: 107.7 MB / 426.7 MB Notification: Performance of Templates: time 0.04602/0.3383, allocations: 101 MB / 0.6799 GB, free: 7.512 MB / 426.7 MB " [Timeout remaining time 660] make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3.makefile [Timeout 660] (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3.sim & ./HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3 -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 7.750331407412887] Failed to read output from testmodel.py, exit status != 0: 0.3432235745713115 0.350466538 0.309244181 Calling exit ...