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.001332/0.001332, allocations: 99.64 kB / 18.94 MB, free: 2.551 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.372/1.372, allocations: 230.6 MB / 252.7 MB, free: 8.07 MB / 206.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.001638/0.001638, allocations: 216.7 kB / 309.2 MB, free: 2.949 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.041/0.041, allocations: 8.913 MB / 374.6 MB, free: 1.73 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: "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_Synchronization2,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_Synchronization2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_Synchronization2,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_Synchronization2",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: HanserModelica requested package Complex of version 4.0.0. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: HanserModelica requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002475/0.002475, allocations: 86.92 kB / 0.4892 GB, free: 4.402 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09534/0.09782, allocations: 55.61 MB / 0.5435 GB, free: 4.852 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Synchronization2): time 0.01763/0.1154, allocations: 14.33 MB / 0.5575 GB, free: 6.461 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01078/0.1262, allocations: 5.275 MB / 0.5626 GB, free: 1.168 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002675/0.1289, allocations: 119.3 kB / 0.5627 GB, free: 1.051 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003569/0.1325, allocations: 1.208 MB / 0.5639 GB, free: 15.83 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005032/0.1375, allocations: 1.573 MB / 0.5654 GB, free: 14.25 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002748/0.1402, allocations: 1.008 MB / 0.5664 GB, free: 13.24 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.006353/0.1466, allocations: 4.749 MB / 0.5711 GB, free: 8.48 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003249/0.1499, allocations: 1.901 MB / 0.5729 GB, free: 6.512 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003557/0.1534, allocations: 2.185 MB / 0.5751 GB, free: 4.32 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004452/0.1579, allocations: 2.436 MB / 0.5774 GB, free: 1.875 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001449/0.1593, allocations: 0.5703 MB / 0.578 GB, free: 1.305 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002354/0.1617, allocations: 0.7771 MB / 0.5788 GB, free: 0.5273 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001589/0.1633, allocations: 1.297 MB / 0.58 GB, free: 15.23 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003419/0.1667, allocations: 1.957 MB / 0.5819 GB, free: 13.26 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009609/0.1763, allocations: 7.595 MB / 0.5893 GB, free: 5.641 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.191e-06/0.1763, allocations: 4 kB / 0.5894 GB, free: 5.637 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.1763, allocations: 0 / 0.5894 GB, free: 5.637 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0001975/0.1765, allocations: 0 / 0.5894 GB, free: 5.637 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.01414/0.1906, allocations: 5.038 MB / 0.5943 GB, free: 0.5391 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.642e-05/0.1907, allocations: 8.031 kB / 0.5943 GB, free: 0.5312 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001436/0.1921, allocations: 0.557 MB / 0.5948 GB, free: 15.96 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005563/0.1977, allocations: 0.9896 MB / 0.5958 GB, free: 14.97 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006893/0.2046, allocations: 2.794 MB / 0.5985 GB, free: 12.14 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003016/0.2049, allocations: 275.8 kB / 0.5988 GB, free: 11.87 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001063/0.2059, allocations: 375.9 kB / 0.5991 GB, free: 11.5 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01045/0.2164, allocations: 4.931 MB / 0.604 GB, free: 6.488 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.606e-05/0.2165, allocations: 8 kB / 0.604 GB, free: 6.48 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004935/0.217, allocations: 152 kB / 0.6041 GB, free: 6.332 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001719/0.2171, allocations: 155.3 kB / 0.6043 GB, free: 6.18 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008433/0.2256, allocations: 4.046 MB / 0.6082 GB, free: 2.129 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02856/0.2541, allocations: 13.82 MB / 0.6217 GB, free: 3.883 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005443/0.2596, allocations: 2.723 MB / 0.6244 GB, free: 1.273 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003835/0.2634, allocations: 1.803 MB / 0.6261 GB, free: 15.47 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008111/0.2715, allocations: 3.698 MB / 0.6297 GB, free: 11.73 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.205e-05/0.2716, allocations: 51.88 kB / 0.6298 GB, free: 11.68 MB / 446.1 MB Notification: Performance of pre-optimization done (n=137): time 3.848e-06/0.2716, allocations: 0 / 0.6298 GB, free: 11.68 MB / 446.1 MB Notification: Performance of matching and sorting (n=159): time 0.01397/0.2855, allocations: 6.229 MB / 0.6359 GB, free: 5.406 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.361e-05/0.2856, allocations: 72.72 kB / 0.6359 GB, free: 5.32 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00364/0.2893, allocations: 2.255 MB / 0.6381 GB, free: 3.035 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002383/0.2895, allocations: 49.7 kB / 0.6382 GB, free: 2.98 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001433/0.2909, allocations: 1.803 MB / 0.6399 GB, free: 1.16 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006408/0.2916, allocations: 0.5733 MB / 0.6405 GB, free: 0.582 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006631/0.2922, allocations: 408.1 kB / 0.6409 GB, free: 180 kB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001372/0.2924, allocations: 305.1 kB / 0.6412 GB, free: 15.88 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001481/0.2938, allocations: 0.8437 MB / 0.642 GB, free: 15.03 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002102/0.2959, allocations: 1.623 MB / 0.6436 GB, free: 13.05 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003782/0.2997, allocations: 2.62 MB / 0.6462 GB, free: 10.09 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.869e-05/0.2997, allocations: 8 kB / 0.6462 GB, free: 10.08 MB / 462.1 MB Notification: Performance of matching and sorting (n=284) (initialization): time 0.005863/0.3056, allocations: 3.046 MB / 0.6491 GB, free: 7.016 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.649e-05/0.3056, allocations: 20.03 kB / 0.6492 GB, free: 6.996 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.85e-05/0.3057, allocations: 24 kB / 0.6492 GB, free: 6.973 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009633/0.3066, allocations: 346.3 kB / 0.6495 GB, free: 6.625 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001924/0.3086, allocations: 0.4992 MB / 0.65 GB, free: 6.125 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006036/0.3146, allocations: 5.028 MB / 0.6549 GB, free: 0.875 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001959/0.3166, allocations: 99.83 kB / 0.655 GB, free: 0.7773 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002726/0.3168, allocations: 108.1 kB / 0.6551 GB, free: 0.6719 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 (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.1974/0.5143, allocations: 1.125 MB / 0.6562 GB, free: 98.64 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006345/0.5149, allocations: 250.2 kB / 0.6564 GB, free: 98.64 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00434/0.5192, allocations: 2.312 MB / 0.6587 GB, free: 98.51 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.699e-05/0.5192, allocations: 16.23 kB / 0.6587 GB, free: 98.51 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.269e-05/0.5193, allocations: 9.531 kB / 0.6587 GB, free: 98.51 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.02e-05/0.5193, allocations: 12.98 kB / 0.6587 GB, free: 98.51 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009765/0.529, allocations: 5.294 MB / 0.6639 GB, free: 96.49 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.195e-06/0.5291, allocations: 1.5 kB / 0.6639 GB, free: 96.49 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001175/0.5302, allocations: 271.8 kB / 0.6642 GB, free: 96.46 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009307/0.5312, allocations: 365.9 kB / 0.6645 GB, free: 96.34 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001365/0.5313, allocations: 40.52 kB / 0.6646 GB, free: 96.32 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005901/0.5372, allocations: 7.026 MB / 0.6714 GB, free: 90.7 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.848e-06/0.5372, allocations: 6.719 kB / 0.6714 GB, free: 90.7 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005048/0.5422, allocations: 3.441 MB / 0.6748 GB, free: 89.23 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001346/0.5436, allocations: 435.2 kB / 0.6752 GB, free: 89.1 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004179/0.544, allocations: 38.31 kB / 0.6752 GB, free: 89.07 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001114/0.5451, allocations: 59.86 kB / 0.6753 GB, free: 89.05 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003187/0.5454, allocations: 128.2 kB / 0.6754 GB, free: 89.04 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.312e-05/0.5455, allocations: 45.03 kB / 0.6755 GB, free: 89.03 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002132/0.5477, allocations: 1.491 MB / 0.6769 GB, free: 88.43 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.5477, allocations: 0 / 0.6769 GB, free: 88.43 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002218/0.5499, allocations: 0.6626 MB / 0.6776 GB, free: 88.37 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 (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.004869/0.5548, allocations: 4.062 MB / 0.6815 GB, free: 86.35 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.003347/0.5581, allocations: 2.347 MB / 0.6838 GB, free: 84.61 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.07e-06/0.5581, allocations: 0 / 0.6838 GB, free: 84.61 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001862/0.56, allocations: 1.37 MB / 0.6852 GB, free: 83.36 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002672/0.5626, allocations: 0.5775 MB / 0.6857 GB, free: 82.9 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03105/0.5937, allocations: 23.76 MB / 0.7089 GB, free: 58.53 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00184/0.5955, allocations: 1.983 MB / 0.7109 GB, free: 56.52 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001549/0.5971, allocations: 0.5161 MB / 0.7114 GB, free: 56 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001444/0.5985, allocations: 1.366 MB / 0.7127 GB, free: 54.63 MB / 462.1 MB Notification: Performance of SimCode: time 1.152e-06/0.5985, allocations: 0.6562 kB / 0.7127 GB, free: 54.63 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.101/0.6995, allocations: 61.8 MB / 0.7731 GB, free: 9.449 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.46/14.16, allocations: 4.062 kB / 0.7731 GB, free: 9.445 MB / 478.1 MB " [Timeout remaining time 646] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_SynchronousMachines_SMEE_Synchronization2_fmu --startTime=0 --stopTime=0.3 --stepSize=0.000100033 --timeout=50 --tolerance=1e-08 HanserModelica_HanserModelica_SynchronousMachines_SMEE_Synchronization2.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization2.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 17.15569176711142] Failed to read output from testmodel.py, exit status != 0: 14.314661195967346 14.341107476 14.159800552 Calling exit ...