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.00143/0.00143, allocations: 111.8 kB / 17.08 MB, free: 6.012 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.263/1.263, allocations: 222.9 MB / 242.7 MB, free: 15.23 MB / 206.1 MB " [Timeout remaining time 179] 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.001365/0.001365, allocations: 196.1 kB / 295.1 MB, free: 12.67 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.0383/0.0383, allocations: 8.798 MB / 356 MB, free: 15.92 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.002202/0.002202, allocations: 83.86 kB / 473.3 MB, free: 5.473 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2131/0.2153, allocations: 51.55 MB / 0.5126 GB, free: 12.62 MB / 334.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Synchronization1): time 0.01689/0.2322, allocations: 15.81 MB / 0.528 GB, free: 13.37 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008885/0.2411, allocations: 5.274 MB / 0.5332 GB, free: 8.074 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001263/0.2424, allocations: 91.69 kB / 0.5332 GB, free: 7.984 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002446/0.2449, allocations: 1.204 MB / 0.5344 GB, free: 6.773 MB / 350.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.003273/0.2482, allocations: 1.561 MB / 0.5359 GB, free: 5.203 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001821/0.25, allocations: 0.9734 MB / 0.5369 GB, free: 4.234 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004818/0.2548, allocations: 4.707 MB / 0.5415 GB, free: 15.51 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003886/0.2587, allocations: 3.524 MB / 0.5449 GB, free: 11.92 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002537/0.2613, allocations: 2.099 MB / 0.547 GB, free: 9.812 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002863/0.2642, allocations: 2.436 MB / 0.5494 GB, free: 7.367 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007098/0.2649, allocations: 0.5703 MB / 0.5499 GB, free: 6.797 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001311/0.2662, allocations: 0.7849 MB / 0.5507 GB, free: 6.012 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001093/0.2673, allocations: 1.293 MB / 0.552 GB, free: 4.715 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002375/0.2697, allocations: 2.447 MB / 0.5543 GB, free: 2.258 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007291/0.277, allocations: 7.517 MB / 0.5617 GB, free: 10.71 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.987e-06/0.277, allocations: 0 / 0.5617 GB, free: 10.71 MB / 382.1 MB Notification: Performance of FrontEnd: time 4.559e-06/0.277, allocations: 0 / 0.5617 GB, free: 10.71 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.668e-05/0.2771, allocations: 3.938 kB / 0.5617 GB, free: 10.71 MB / 382.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.01055/0.2876, allocations: 5.078 MB / 0.5666 GB, free: 5.555 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.712e-05/0.2877, allocations: 16.02 kB / 0.5667 GB, free: 5.539 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004644/0.2923, allocations: 0.9702 MB / 0.5676 GB, free: 4.566 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004921/0.2973, allocations: 2.846 MB / 0.5704 GB, free: 1.668 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002336/0.2975, allocations: 275.8 kB / 0.5706 GB, free: 1.398 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005643/0.2981, allocations: 372.1 kB / 0.571 GB, free: 1.035 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007799/0.3059, allocations: 4.768 MB / 0.5757 GB, free: 12.22 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.086e-05/0.306, allocations: 8 kB / 0.5757 GB, free: 12.21 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003344/0.3063, allocations: 152 kB / 0.5758 GB, free: 12.07 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001455/0.3065, allocations: 155.4 kB / 0.576 GB, free: 11.91 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006658/0.3132, allocations: 4.038 MB / 0.5799 GB, free: 7.871 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02161/0.3348, allocations: 15.61 MB / 0.5952 GB, free: 7.762 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006733/0.3415, allocations: 6.932 MB / 0.6019 GB, free: 15.95 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00237/0.3439, allocations: 1.499 MB / 0.6034 GB, free: 14.45 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006492/0.3504, allocations: 4.165 MB / 0.6075 GB, free: 10.17 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.646e-05/0.3505, allocations: 51.88 kB / 0.6075 GB, free: 10.11 MB / 430.1 MB Notification: Performance of pre-optimization done (n=137): time 2.584e-06/0.3505, allocations: 0 / 0.6075 GB, free: 10.11 MB / 430.1 MB Notification: Performance of matching and sorting (n=159): time 0.0116/0.3621, allocations: 6.417 MB / 0.6138 GB, free: 3.527 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.16e-05/0.3622, allocations: 72.72 kB / 0.6138 GB, free: 3.445 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002925/0.3651, allocations: 2.183 MB / 0.616 GB, free: 1.23 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 9.452e-05/0.3652, allocations: 49.7 kB / 0.616 GB, free: 1.176 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00131/0.3665, allocations: 1.783 MB / 0.6178 GB, free: 15.38 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004599/0.367, allocations: 0.5694 MB / 0.6183 GB, free: 14.8 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005848/0.3676, allocations: 412 kB / 0.6187 GB, free: 14.39 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001209/0.3677, allocations: 305.1 kB / 0.619 GB, free: 14.09 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001344/0.3691, allocations: 0.832 MB / 0.6198 GB, free: 13.25 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00192/0.371, allocations: 1.582 MB / 0.6214 GB, free: 11.32 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003409/0.3744, allocations: 2.588 MB / 0.6239 GB, free: 8.387 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.896e-06/0.3744, allocations: 7.938 kB / 0.6239 GB, free: 8.379 MB / 446.1 MB Notification: Performance of matching and sorting (n=284) (initialization): time 0.00478/0.3792, allocations: 3.046 MB / 0.6269 GB, free: 5.297 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.961e-05/0.3793, allocations: 19.94 kB / 0.6269 GB, free: 5.277 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.573e-05/0.3793, allocations: 24 kB / 0.6269 GB, free: 5.254 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007779/0.3801, allocations: 306.9 kB / 0.6272 GB, free: 4.945 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001666/0.3818, allocations: 0.4993 MB / 0.6277 GB, free: 4.445 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004996/0.3868, allocations: 4.875 MB / 0.6324 GB, free: 15.29 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001427/0.3882, allocations: 107.9 kB / 0.6326 GB, free: 15.18 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001471/0.3884, allocations: 103.9 kB / 0.6327 GB, free: 15.08 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.001729/0.3901, allocations: 1.132 MB / 0.6338 GB, free: 13.94 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003612/0.3905, allocations: 246.5 kB / 0.634 GB, free: 13.7 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004038/0.3945, allocations: 2.401 MB / 0.6363 GB, free: 11.24 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.441e-05/0.3945, allocations: 16 kB / 0.6364 GB, free: 11.22 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.995e-06/0.3945, allocations: 4 kB / 0.6364 GB, free: 11.22 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.462e-05/0.3946, allocations: 7.969 kB / 0.6364 GB, free: 11.21 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008427/0.403, allocations: 5.695 MB / 0.6419 GB, free: 5.387 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.631e-06/0.403, allocations: 0 / 0.6419 GB, free: 5.387 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001156/0.4042, allocations: 279.8 kB / 0.6422 GB, free: 5.113 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000798/0.405, allocations: 314.3 kB / 0.6425 GB, free: 4.797 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001071/0.4051, allocations: 35.98 kB / 0.6425 GB, free: 4.762 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007017/0.4121, allocations: 7.013 MB / 0.6494 GB, free: 13.34 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.4122, allocations: 0 / 0.6494 GB, free: 13.34 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005468/0.4176, allocations: 3.509 MB / 0.6528 GB, free: 9.738 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001029/0.4187, allocations: 0.4919 MB / 0.6533 GB, free: 9.227 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002649/0.419, allocations: 32 kB / 0.6533 GB, free: 9.195 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009593/0.4199, allocations: 75.89 kB / 0.6534 GB, free: 9.121 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002675/0.4202, allocations: 113.3 kB / 0.6535 GB, free: 9.012 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.867e-05/0.4203, allocations: 44 kB / 0.6535 GB, free: 8.969 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.002101/0.4224, allocations: 1.476 MB / 0.655 GB, free: 7.477 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.4224, allocations: 0 / 0.655 GB, free: 7.477 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.001993/0.4244, allocations: 0.6601 MB / 0.6556 GB, free: 6.816 MB / 478.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.0002962/0.4247, allocations: 159 kB / 0.6558 GB, free: 6.652 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.003875/0.4286, allocations: 2.472 MB / 0.6582 GB, free: 4.137 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 3.837e-06/0.4286, allocations: 0 / 0.6582 GB, free: 4.137 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002076/0.4307, allocations: 1.402 MB / 0.6596 GB, free: 2.695 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002325/0.4331, allocations: 0.5825 MB / 0.6601 GB, free: 2.117 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1751/0.6081, allocations: 6.516 MB / 0.6665 GB, free: 131.6 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001507/0.6097, allocations: 2.45 MB / 0.6689 GB, free: 130.9 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000641/0.6103, allocations: 177.4 kB / 0.669 GB, free: 130.9 MB / 478.1 MB Notification: Performance of SimCode: time 7.02e-07/0.6103, allocations: 0 / 0.669 GB, free: 130.9 MB / 478.1 MB Notification: Performance of Templates: time 0.06824/0.6786, allocations: 100.1 MB / 0.7668 GB, free: 38.24 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: 11.104696104070172] Failed to read output from testmodel.py, exit status != 0: 0.6840685459319502 0.6918312790000001 0.41322314800000004 Calling exit ...