Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2.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.0007916/0.0007916, 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.848/0.848, allocations: 177.2 MB / 200.2 MB, free: 5.902 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.001592/0.001592, allocations: 159.3 kB / 256.7 MB, free: 13.31 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.02223/0.02223, allocations: 6.667 MB / 319.8 MB, free: 26.75 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_Synchronization2,tolerance=1e-08,outputFormat="empty",numberOfIntervals=2999,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2") translateModel(HanserModelica.SynchronousMachines.SMEE_Synchronization2,tolerance=1e-08,outputFormat="empty",numberOfIntervals=2999,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.222e-06/1.222e-06, allocations: 3.938 kB / 446.7 MB, free: 37.08 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.245e-05/1.368e-05, allocations: 2.281 kB / 446.7 MB, free: 37.07 MB / 330.7 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Synchronization2): time 0.007541/0.007554, allocations: 14.34 MB / 461 MB, free: 22.66 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.004156/0.01171, allocations: 5.286 MB / 466.3 MB, free: 17.36 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006737/0.01238, allocations: 119.3 kB / 466.4 MB, free: 17.24 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001365/0.01375, allocations: 1.216 MB / 467.7 MB, free: 16.02 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001537/0.01529, allocations: 1.626 MB / 469.3 MB, free: 14.38 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008522/0.01614, allocations: 1.02 MB / 470.3 MB, free: 13.36 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.001842/0.01798, allocations: 4.966 MB / 475.3 MB, free: 8.371 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001252/0.01923, allocations: 1.913 MB / 477.2 MB, free: 6.395 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001543/0.02078, allocations: 3.185 MB / 480.4 MB, free: 3.203 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001202/0.02198, allocations: 2.069 MB / 482.4 MB, free: 1.129 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003199/0.0223, allocations: 0.5664 MB / 483 MB, free: 0.5625 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006427/0.02294, allocations: 0.7847 MB / 483.8 MB, free: 15.78 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006393/0.02358, allocations: 1.332 MB / 485.1 MB, free: 14.44 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001012/0.02459, allocations: 1.664 MB / 486.8 MB, free: 12.77 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004473/0.02906, allocations: 7.615 MB / 494.4 MB, free: 5.137 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.026e-06/0.02907, allocations: 0 / 494.4 MB, free: 5.137 MB / 346.7 MB Notification: Performance of FrontEnd: time 9.91e-07/0.02907, allocations: 0 / 494.4 MB, free: 5.137 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.018e-05/0.02911, allocations: 0 / 494.4 MB, free: 5.137 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.005715/0.03482, allocations: 4.999 MB / 499.4 MB, free: 80 kB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.264e-05/0.03486, allocations: 8.031 kB / 499.4 MB, free: 72 kB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002478/0.03733, allocations: 0.9848 MB / 0.4887 GB, free: 15.08 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003031/0.04037, allocations: 2.789 MB / 0.4914 GB, free: 12.25 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001313/0.0405, allocations: 283.8 kB / 0.4917 GB, free: 11.97 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003403/0.04084, allocations: 364.3 kB / 0.492 GB, free: 11.61 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004741/0.04558, allocations: 4.928 MB / 0.4968 GB, free: 6.605 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.659e-05/0.04563, allocations: 0 / 0.4968 GB, free: 6.605 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002365/0.04587, allocations: 159.9 kB / 0.497 GB, free: 6.449 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.157e-05/0.04596, allocations: 155.3 kB / 0.4971 GB, free: 6.297 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004157/0.05012, allocations: 4.05 MB / 0.5011 GB, free: 2.242 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01198/0.06209, allocations: 13.29 MB / 0.5141 GB, free: 4.555 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002885/0.06498, allocations: 2.731 MB / 0.5167 GB, free: 1.941 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001998/0.06698, allocations: 1.826 MB / 0.5185 GB, free: 120 kB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003989/0.07097, allocations: 3.643 MB / 0.5221 GB, free: 12.43 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.9e-05/0.071, allocations: 51.88 kB / 0.5221 GB, free: 12.37 MB / 394.7 MB Notification: Performance of pre-optimization done (n=137): time 2.424e-06/0.071, allocations: 0 / 0.5221 GB, free: 12.37 MB / 394.7 MB Notification: Performance of matching and sorting (n=159): time 0.00748/0.07848, allocations: 6.204 MB / 0.5282 GB, free: 6.121 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.54e-05/0.07851, allocations: 72.66 kB / 0.5282 GB, free: 6.039 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001771/0.08028, allocations: 2.01 MB / 0.5302 GB, free: 3.988 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 6.989e-05/0.08035, allocations: 53.7 kB / 0.5303 GB, free: 3.93 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007702/0.08112, allocations: 1.805 MB / 0.532 GB, free: 2.105 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002868/0.08141, allocations: 0.5655 MB / 0.5326 GB, free: 1.535 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003839/0.08179, allocations: 408 kB / 0.533 GB, free: 1.129 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 6.558e-05/0.08186, allocations: 305.1 kB / 0.5332 GB, free: 0.8281 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008729/0.08273, allocations: 0.836 MB / 0.5341 GB, free: 15.98 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001193/0.08393, allocations: 1.63 MB / 0.5357 GB, free: 14 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002152/0.08608, allocations: 2.616 MB / 0.5382 GB, free: 11.04 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.997e-06/0.08609, allocations: 8 kB / 0.5382 GB, free: 11.04 MB / 410.7 MB Notification: Performance of matching and sorting (n=284) (initialization): time 0.003009/0.0891, allocations: 3.026 MB / 0.5412 GB, free: 7.992 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.279e-05/0.08912, allocations: 20.03 kB / 0.5412 GB, free: 7.973 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.072e-05/0.08914, allocations: 27.98 kB / 0.5412 GB, free: 7.945 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000528/0.08967, allocations: 346.2 kB / 0.5415 GB, free: 7.598 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009193/0.09059, allocations: 0.4953 MB / 0.542 GB, free: 7.102 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003319/0.09391, allocations: 4.959 MB / 0.5469 GB, free: 1.945 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000749/0.09465, allocations: 103.9 kB / 0.547 GB, free: 1.844 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.907e-05/0.09475, allocations: 104.1 kB / 0.5471 GB, free: 1.742 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.001243/0.096, allocations: 1.137 MB / 0.5482 GB, free: 0.5938 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001875/0.09618, allocations: 222.6 kB / 0.5484 GB, free: 384 kB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002463/0.09865, allocations: 2.304 MB / 0.5506 GB, free: 14.05 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.346e-06/0.09866, allocations: 16 kB / 0.5507 GB, free: 14.03 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.791e-06/0.09866, allocations: 4 kB / 0.5507 GB, free: 14.03 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.13e-05/0.09867, allocations: 11.97 kB / 0.5507 GB, free: 14.02 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004878/0.1036, allocations: 4.845 MB / 0.5554 GB, free: 9.102 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.067e-06/0.1036, allocations: 0 / 0.5554 GB, free: 9.102 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005991/0.1042, allocations: 275.8 kB / 0.5557 GB, free: 8.832 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000515/0.1047, allocations: 362.2 kB / 0.556 GB, free: 8.469 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.533e-05/0.1047, allocations: 39.98 kB / 0.5561 GB, free: 8.43 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004233/0.109, allocations: 6.96 MB / 0.5629 GB, free: 1.168 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.109, allocations: 4.031 kB / 0.5629 GB, free: 1.164 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.136/0.245, allocations: 3.407 MB / 0.5662 GB, free: 115.8 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007402/0.2457, allocations: 413.4 kB / 0.5666 GB, free: 115.8 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001578/0.2459, allocations: 31 kB / 0.5666 GB, free: 115.8 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005313/0.2464, allocations: 67.84 kB / 0.5667 GB, free: 115.8 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001757/0.2466, allocations: 120.5 kB / 0.5668 GB, free: 115.8 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.102e-05/0.2467, allocations: 46.3 kB / 0.5668 GB, free: 115.8 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0014/0.2481, allocations: 1.314 MB / 0.5681 GB, free: 115.3 MB / 426.7 MB Notification: Performance of sort global known variables: time 6e-08/0.2481, allocations: 3.828 kB / 0.5681 GB, free: 115.3 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001374/0.2494, allocations: 0.6594 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.0002302/0.2497, allocations: 162.1 kB / 0.5689 GB, free: 115.2 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.00205/0.2517, allocations: 2.34 MB / 0.5712 GB, free: 114.2 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.2517, allocations: 13.81 kB / 0.5712 GB, free: 114.2 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009937/0.2527, allocations: 1.357 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.001077/0.2538, allocations: 490.7 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.005489/0.2593, allocations: 6.371 MB / 0.5792 GB, free: 109.3 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001017/0.2603, allocations: 1.917 MB / 0.5811 GB, free: 107.9 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003159/0.2606, allocations: 171 kB / 0.5813 GB, free: 107.7 MB / 426.7 MB Notification: Performance of SimCode: time 1.162e-06/0.2606, allocations: 4 kB / 0.5813 GB, free: 107.7 MB / 426.7 MB Notification: Performance of Templates: time 0.0468/0.3074, allocations: 101 MB / 0.6799 GB, free: 7.516 MB / 426.7 MB " [Timeout remaining time 660] make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2.makefile [Timeout 660] (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2.sim & ./HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 7.63904048781842] Failed to read output from testmodel.py, exit status != 0: 0.31199018750339746 0.31941403 0.28874365 Calling exit ...