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.001433/0.001433, allocations: 80.52 kB / 19.18 MB, free: 2.527 MB / 14.72 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 1.402/1.402, allocations: 177.1 MB / 199.4 MB, free: 8.445 MB / 190.1 MB " [Timeout remaining time 178] 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.001633/0.001633, allocations: 164.9 kB / 256 MB, free: 4.316 MB / 238.1 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.04018/0.04018, allocations: 6.654 MB / 319 MB, free: 5.383 MB / 302.1 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.052e-06/1.052e-06, allocations: 0 / 445.9 MB, free: 25.15 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.856e-05/1.962e-05, allocations: 2.281 kB / 445.9 MB, free: 25.15 MB / 334.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Synchronization2): time 0.01087/0.01089, allocations: 14.35 MB / 460.3 MB, free: 10.73 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008096/0.01899, allocations: 5.283 MB / 465.6 MB, free: 5.434 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002166/0.02115, allocations: 115.4 kB / 465.7 MB, free: 5.32 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00245/0.0236, allocations: 1.223 MB / 466.9 MB, free: 4.09 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003333/0.02693, allocations: 1.626 MB / 468.5 MB, free: 2.453 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001788/0.02872, allocations: 1.015 MB / 469.5 MB, free: 1.441 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.005453/0.03418, allocations: 4.971 MB / 474.5 MB, free: 12.44 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002821/0.037, allocations: 1.913 MB / 476.4 MB, free: 10.46 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004668/0.04166, allocations: 3.177 MB / 479.6 MB, free: 7.281 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003252/0.04492, allocations: 2.061 MB / 481.7 MB, free: 5.215 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008587/0.04577, allocations: 0.5703 MB / 482.2 MB, free: 4.645 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001572/0.04735, allocations: 0.7925 MB / 483 MB, free: 3.852 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001275/0.04862, allocations: 1.332 MB / 484.4 MB, free: 2.516 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002258/0.05088, allocations: 1.668 MB / 486 MB, free: 0.8438 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1698/0.2207, allocations: 7.601 MB / 493.6 MB, free: 24.55 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.085e-06/0.2207, allocations: 3.812 kB / 493.6 MB, free: 24.55 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.754e-06/0.2207, allocations: 1.312 kB / 493.6 MB, free: 24.55 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002405/0.2209, allocations: 0 / 493.6 MB, free: 24.55 MB / 350.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.01672/0.2376, allocations: 5 MB / 498.6 MB, free: 22.76 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.184e-05/0.2377, allocations: 13.67 kB / 498.6 MB, free: 22.76 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007021/0.2447, allocations: 0.9837 MB / 499.6 MB, free: 22.52 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006938/0.2516, allocations: 2.785 MB / 0.4906 GB, free: 21.95 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002815/0.2519, allocations: 278.9 kB / 0.4909 GB, free: 21.95 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001288/0.2532, allocations: 369.2 kB / 0.4913 GB, free: 21.94 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008542/0.2617, allocations: 4.934 MB / 0.4961 GB, free: 19.54 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.056e-05/0.2618, allocations: 0 / 0.4961 GB, free: 19.54 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003697/0.2622, allocations: 158.1 kB / 0.4962 GB, free: 19.42 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001244/0.2623, allocations: 152.7 kB / 0.4964 GB, free: 19.41 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006002/0.2683, allocations: 4.046 MB / 0.5003 GB, free: 17.27 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01924/0.2876, allocations: 13.3 MB / 0.5133 GB, free: 7.637 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004206/0.2918, allocations: 2.733 MB / 0.516 GB, free: 5.055 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003056/0.2948, allocations: 1.819 MB / 0.5178 GB, free: 3.258 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006058/0.3009, allocations: 3.655 MB / 0.5213 GB, free: 15.62 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.084e-05/0.3009, allocations: 55.53 kB / 0.5214 GB, free: 15.56 MB / 366.1 MB Notification: Performance of pre-optimization done (n=137): time 3.346e-06/0.3009, allocations: 0 / 0.5214 GB, free: 15.56 MB / 366.1 MB Notification: Performance of matching and sorting (n=159): time 0.01452/0.3155, allocations: 6.209 MB / 0.5274 GB, free: 9.355 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.824e-05/0.3155, allocations: 68.72 kB / 0.5275 GB, free: 9.277 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003277/0.3188, allocations: 2.006 MB / 0.5295 GB, free: 7.23 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001514/0.3189, allocations: 56.55 kB / 0.5295 GB, free: 7.172 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001518/0.3205, allocations: 1.801 MB / 0.5313 GB, free: 5.363 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005841/0.3211, allocations: 0.5689 MB / 0.5318 GB, free: 4.801 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007047/0.3218, allocations: 412.1 kB / 0.5322 GB, free: 4.391 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001528/0.3219, allocations: 312.6 kB / 0.5325 GB, free: 4.086 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001538/0.3234, allocations: 0.832 MB / 0.5333 GB, free: 3.25 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002232/0.3257, allocations: 1.626 MB / 0.5349 GB, free: 1.277 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00397/0.3296, allocations: 2.616 MB / 0.5375 GB, free: 14.42 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.63e-05/0.3297, allocations: 8 kB / 0.5375 GB, free: 14.41 MB / 382.1 MB Notification: Performance of matching and sorting (n=284) (initialization): time 0.006036/0.3357, allocations: 3.028 MB / 0.5404 GB, free: 11.52 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.452e-05/0.3357, allocations: 12.75 kB / 0.5405 GB, free: 11.51 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.293e-05/0.3358, allocations: 28 kB / 0.5405 GB, free: 11.48 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00104/0.3368, allocations: 342.3 kB / 0.5408 GB, free: 11.14 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001914/0.3387, allocations: 0.4916 MB / 0.5413 GB, free: 10.68 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006256/0.345, allocations: 4.96 MB / 0.5461 GB, free: 5.574 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002131/0.3471, allocations: 103.8 kB / 0.5462 GB, free: 5.473 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002193/0.3473, allocations: 104 kB / 0.5463 GB, free: 5.371 MB / 382.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 (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.002338/0.3497, allocations: 1.14 MB / 0.5474 GB, free: 4.258 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005002/0.3502, allocations: 226.5 kB / 0.5477 GB, free: 4.035 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004592/0.3548, allocations: 2.305 MB / 0.5499 GB, free: 1.723 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.664e-05/0.3548, allocations: 16 kB / 0.5499 GB, free: 1.707 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.148e-05/0.3548, allocations: 4 kB / 0.5499 GB, free: 1.703 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.736e-05/0.3548, allocations: 7.969 kB / 0.5499 GB, free: 1.695 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01023/0.365, allocations: 4.838 MB / 0.5547 GB, free: 12.86 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.608e-06/0.3651, allocations: 4 kB / 0.5547 GB, free: 12.86 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001293/0.3663, allocations: 267 kB / 0.5549 GB, free: 12.61 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001064/0.3674, allocations: 366.8 kB / 0.5553 GB, free: 12.25 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001146/0.3675, allocations: 39.98 kB / 0.5553 GB, free: 12.21 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008304/0.3758, allocations: 6.949 MB / 0.5621 GB, free: 5.008 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.558e-06/0.3758, allocations: 4.031 kB / 0.5621 GB, free: 5.004 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006209/0.382, allocations: 3.416 MB / 0.5654 GB, free: 1.559 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001179/0.3832, allocations: 414.4 kB / 0.5658 GB, free: 1.152 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000313/0.3835, allocations: 39.94 kB / 0.5659 GB, free: 1.113 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001094/0.3846, allocations: 58.81 kB / 0.5659 GB, free: 1.059 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003232/0.385, allocations: 125.1 kB / 0.566 GB, free: 0.9375 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001161/0.3851, allocations: 48.36 kB / 0.5661 GB, free: 0.8906 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002348/0.3874, allocations: 1.311 MB / 0.5674 GB, free: 15.56 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3874, allocations: 4 kB / 0.5674 GB, free: 15.55 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002514/0.3899, allocations: 0.6562 MB / 0.568 GB, free: 14.9 MB / 414.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 (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.0003752/0.3903, allocations: 168.7 kB / 0.5682 GB, free: 14.74 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004387/0.3947, allocations: 2.348 MB / 0.5705 GB, free: 12.45 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.338e-06/0.3947, allocations: 0 / 0.5705 GB, free: 12.45 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002451/0.3971, allocations: 1.368 MB / 0.5718 GB, free: 11.07 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002655/0.3998, allocations: 498.2 kB / 0.5723 GB, free: 10.59 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01321/0.413, allocations: 6.392 MB / 0.5785 GB, free: 4.164 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002642/0.4157, allocations: 1.982 MB / 0.5805 GB, free: 2.145 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001781/0.4174, allocations: 498.5 kB / 0.5809 GB, free: 1.656 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004684/0.4179, allocations: 159.2 kB / 0.5811 GB, free: 1.504 MB / 414.1 MB Notification: Performance of SimCode: time 1.142e-06/0.4179, allocations: 0 / 0.5811 GB, free: 1.504 MB / 414.1 MB Notification: Performance of Templates: time 0.05952/0.4774, allocations: 29.51 MB / 0.6099 GB, free: 4.473 MB / 446.1 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: 5.608302988111973] Failed to read output from testmodel.py, exit status != 0: 0.4854275584220886 0.5017886060000001 0.277947581 Calling exit ...