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.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.001908/0.001908, allocations: 112.5 kB / 17.13 MB, free: 5.938 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.474/1.474, 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.001515/0.001515, allocations: 198.5 kB / 300.5 MB, free: 9.801 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.04513/0.04513, allocations: 8.935 MB / 364.3 MB, free: 10.15 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_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 0.002495/0.002495, allocations: 87.97 kB / 487.3 MB, free: 11.7 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09135/0.09385, allocations: 54.4 MB / 0.529 GB, free: 0.7812 MB / 334.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Synchronization3): time 0.02023/0.1141, allocations: 15.9 MB / 0.5445 GB, free: 0.8008 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01075/0.1248, allocations: 5.286 MB / 0.5497 GB, free: 11.5 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002327/0.1271, allocations: 91.69 kB / 0.5498 GB, free: 11.41 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003375/0.1305, allocations: 1.258 MB / 0.551 GB, free: 10.14 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.004932/0.1355, allocations: 1.603 MB / 0.5525 GB, free: 8.535 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002633/0.1381, allocations: 0.9706 MB / 0.5535 GB, free: 7.566 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.006445/0.1445, allocations: 4.705 MB / 0.5581 GB, free: 2.844 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003605/0.1481, allocations: 2.455 MB / 0.5605 GB, free: 328 kB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003144/0.1513, allocations: 2.114 MB / 0.5626 GB, free: 14.2 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0038/0.1551, allocations: 2.471 MB / 0.565 GB, free: 11.72 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001075/0.1562, allocations: 0.5703 MB / 0.5655 GB, free: 11.15 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001833/0.158, allocations: 0.7771 MB / 0.5663 GB, free: 10.37 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001382/0.1594, allocations: 1.305 MB / 0.5676 GB, free: 9.062 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003193/0.1626, allocations: 2.439 MB / 0.5699 GB, free: 6.613 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009249/0.1718, allocations: 7.529 MB / 0.5773 GB, free: 15.06 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.1718, allocations: 4 kB / 0.5773 GB, free: 15.05 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.1718, allocations: 0 / 0.5773 GB, free: 15.05 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0001632/0.172, allocations: 0 / 0.5773 GB, free: 15.05 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.01337/0.1854, allocations: 5.082 MB / 0.5823 GB, free: 9.895 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.297e-05/0.1854, allocations: 8.031 kB / 0.5823 GB, free: 9.887 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0055/0.1909, allocations: 0.978 MB / 0.5832 GB, free: 8.906 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006668/0.1976, allocations: 2.842 MB / 0.586 GB, free: 6.012 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000278/0.1978, allocations: 271.8 kB / 0.5863 GB, free: 5.746 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007396/0.1986, allocations: 372.1 kB / 0.5866 GB, free: 5.383 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009043/0.2076, allocations: 4.772 MB / 0.5913 GB, free: 0.5664 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001284/0.2078, allocations: 3.938 kB / 0.5913 GB, free: 0.5625 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003507/0.2081, allocations: 152 kB / 0.5914 GB, free: 424 kB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001571/0.2083, allocations: 159.3 kB / 0.5916 GB, free: 264 kB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007723/0.216, allocations: 4.046 MB / 0.5955 GB, free: 12.21 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02672/0.2427, allocations: 15.6 MB / 0.6108 GB, free: 12.11 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007283/0.25, allocations: 6.783 MB / 0.6174 GB, free: 4.453 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002654/0.2526, allocations: 1.391 MB / 0.6187 GB, free: 3.062 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007934/0.2606, allocations: 4.165 MB / 0.6228 GB, free: 14.78 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.113e-05/0.2606, allocations: 43.88 kB / 0.6228 GB, free: 14.72 MB / 446.1 MB Notification: Performance of pre-optimization done (n=137): time 2.966e-06/0.2606, allocations: 3.938 kB / 0.6228 GB, free: 14.72 MB / 446.1 MB Notification: Performance of matching and sorting (n=159): time 0.01345/0.2741, allocations: 6.408 MB / 0.6291 GB, free: 8.148 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.569e-05/0.2741, allocations: 68.72 kB / 0.6292 GB, free: 8.07 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003536/0.2777, allocations: 2.183 MB / 0.6313 GB, free: 5.855 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001523/0.2778, allocations: 53.7 kB / 0.6314 GB, free: 5.797 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001494/0.2793, allocations: 1.783 MB / 0.6331 GB, free: 3.996 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005584/0.2799, allocations: 0.5694 MB / 0.6337 GB, free: 3.422 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006435/0.2805, allocations: 412 kB / 0.634 GB, free: 3.012 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.000152/0.2807, allocations: 309.1 kB / 0.6343 GB, free: 2.707 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001502/0.2822, allocations: 0.8242 MB / 0.6351 GB, free: 1.879 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002171/0.2843, allocations: 1.586 MB / 0.6367 GB, free: 15.94 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003853/0.2882, allocations: 2.592 MB / 0.6392 GB, free: 13 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.346e-05/0.2882, allocations: 4 kB / 0.6392 GB, free: 13 MB / 462.1 MB Notification: Performance of matching and sorting (n=284) (initialization): time 0.005608/0.2938, allocations: 3.035 MB / 0.6422 GB, free: 9.93 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.587e-05/0.2938, allocations: 19.94 kB / 0.6422 GB, free: 9.91 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.53e-05/0.2939, allocations: 24 kB / 0.6422 GB, free: 9.887 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008884/0.2948, allocations: 306.4 kB / 0.6425 GB, free: 9.578 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001989/0.2968, allocations: 0.5031 MB / 0.643 GB, free: 9.074 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005644/0.3024, allocations: 4.866 MB / 0.6478 GB, free: 3.93 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001791/0.3042, allocations: 107.9 kB / 0.6479 GB, free: 3.824 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002168/0.3044, allocations: 99.94 kB / 0.648 GB, free: 3.727 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.002114/0.3065, allocations: 1.13 MB / 0.6491 GB, free: 2.586 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005139/0.307, allocations: 250.4 kB / 0.6493 GB, free: 2.34 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1959/0.5029, allocations: 2.378 MB / 0.6516 GB, free: 107 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.661e-05/0.5029, allocations: 16.36 kB / 0.6516 GB, free: 107 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.817e-05/0.5029, allocations: 5.594 kB / 0.6517 GB, free: 107 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.343e-05/0.503, allocations: 10.14 kB / 0.6517 GB, free: 107 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009998/0.513, allocations: 5.682 MB / 0.6572 GB, free: 105 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.005e-06/0.513, allocations: 3.094 kB / 0.6572 GB, free: 105 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001195/0.5142, allocations: 275.3 kB / 0.6575 GB, free: 105 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007927/0.515, allocations: 315.2 kB / 0.6578 GB, free: 104.8 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.63e-05/0.5151, allocations: 39.59 kB / 0.6578 GB, free: 104.8 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005324/0.5204, allocations: 7.016 MB / 0.6647 GB, free: 98.95 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/0.5204, allocations: 1.188 kB / 0.6647 GB, free: 98.95 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004547/0.5249, allocations: 3.493 MB / 0.6681 GB, free: 97.32 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001076/0.526, allocations: 0.4931 MB / 0.6686 GB, free: 97.1 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003017/0.5263, allocations: 31.91 kB / 0.6686 GB, free: 97.07 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001047/0.5274, allocations: 69.62 kB / 0.6687 GB, free: 97.05 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002496/0.5276, allocations: 129.9 kB / 0.6688 GB, free: 97.04 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.149e-05/0.5277, allocations: 40.56 kB / 0.6688 GB, free: 97.03 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001982/0.5297, allocations: 1.472 MB / 0.6703 GB, free: 96.44 MB / 462.1 MB Notification: Performance of sort global known variables: time 5e-08/0.5297, allocations: 0 / 0.6703 GB, free: 96.44 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002151/0.5318, allocations: 0.6495 MB / 0.6709 GB, free: 96.38 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.0003033/0.5321, allocations: 170 kB / 0.6711 GB, free: 96.25 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.003209/0.5353, allocations: 2.365 MB / 0.6734 GB, free: 95.17 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.097e-06/0.5353, allocations: 0.6562 kB / 0.6734 GB, free: 95.17 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001745/0.5371, allocations: 1.332 MB / 0.6747 GB, free: 94.44 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002323/0.5394, allocations: 0.5755 MB / 0.6752 GB, free: 94.24 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008905/0.5483, allocations: 6.519 MB / 0.6816 GB, free: 90.54 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001534/0.5499, allocations: 2.455 MB / 0.684 GB, free: 88.3 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005646/0.5504, allocations: 179.4 kB / 0.6842 GB, free: 88.12 MB / 462.1 MB Notification: Performance of SimCode: time 1.012e-06/0.5504, allocations: 3.938 kB / 0.6842 GB, free: 88.12 MB / 462.1 MB Notification: Performance of Templates: time 0.08043/0.6309, allocations: 100.4 MB / 0.7822 GB, free: 3.781 MB / 478.1 MB " [Timeout remaining time 659] 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: 12.864860160741955] Failed to read output from testmodel.py, exit status != 0: 0.7855871268548071 0.6538718440000001 0.478814766 Calling exit ...