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.001748/0.001748, allocations: 110.5 kB / 16.45 MB, free: 6.035 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.51/1.51, allocations: 225.6 MB / 244.8 MB, free: 14.21 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.001521/0.001521, allocations: 198.2 kB / 299.8 MB, free: 9.836 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.04079/0.04079, allocations: 8.93 MB / 363.6 MB, free: 10.19 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: "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_Synchronization3,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_Synchronization3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_Synchronization3,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_Synchronization3",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002366/0.002366, allocations: 82.69 kB / 486.1 MB, free: 11.72 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1094/0.1118, allocations: 54.41 MB / 0.5278 GB, free: 1.32 MB / 334.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Synchronization3): time 0.01939/0.1311, allocations: 15.89 MB / 0.5434 GB, free: 1.355 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01154/0.1427, allocations: 5.282 MB / 0.5485 GB, free: 12.06 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003384/0.1461, allocations: 91.69 kB / 0.5486 GB, free: 11.97 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004441/0.1505, allocations: 1.254 MB / 0.5498 GB, free: 10.71 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.006592/0.1571, allocations: 1.616 MB / 0.5514 GB, free: 9.082 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003292/0.1604, allocations: 0.9709 MB / 0.5523 GB, free: 8.113 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.008428/0.1688, allocations: 4.703 MB / 0.5569 GB, free: 3.398 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004138/0.173, allocations: 2.455 MB / 0.5593 GB, free: 0.875 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003848/0.1768, allocations: 2.122 MB / 0.5614 GB, free: 14.75 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004682/0.1815, allocations: 2.463 MB / 0.5638 GB, free: 12.27 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00136/0.1829, allocations: 0.5703 MB / 0.5644 GB, free: 11.7 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002231/0.1851, allocations: 0.7849 MB / 0.5651 GB, free: 10.92 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00134/0.1864, allocations: 1.301 MB / 0.5664 GB, free: 9.613 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003632/0.1901, allocations: 2.439 MB / 0.5688 GB, free: 7.164 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01051/0.2006, allocations: 7.529 MB / 0.5761 GB, free: 15.61 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.057e-06/0.2006, allocations: 7.938 kB / 0.5762 GB, free: 15.6 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.2006, allocations: 0 / 0.5762 GB, free: 15.6 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0002141/0.2008, allocations: 0 / 0.5762 GB, free: 15.6 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.01467/0.2155, allocations: 5.086 MB / 0.5811 GB, free: 10.44 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.93e-05/0.2155, allocations: 8.031 kB / 0.5811 GB, free: 10.43 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001348/0.2169, allocations: 0.5492 MB / 0.5817 GB, free: 9.871 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005809/0.2227, allocations: 0.9779 MB / 0.5826 GB, free: 8.891 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007509/0.2302, allocations: 2.842 MB / 0.5854 GB, free: 5.996 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002761/0.2305, allocations: 279.8 kB / 0.5857 GB, free: 5.723 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001047/0.2315, allocations: 375.8 kB / 0.586 GB, free: 5.355 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009799/0.2413, allocations: 4.776 MB / 0.5907 GB, free: 0.5352 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.68e-05/0.2414, allocations: 7.891 kB / 0.5907 GB, free: 0.5273 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003639/0.2417, allocations: 148 kB / 0.5908 GB, free: 392 kB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001501/0.2419, allocations: 155.4 kB / 0.591 GB, free: 236 kB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007772/0.2497, allocations: 4.05 MB / 0.5949 GB, free: 12.18 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03101/0.2807, allocations: 15.59 MB / 0.6102 GB, free: 12.09 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007439/0.2881, allocations: 6.777 MB / 0.6168 GB, free: 4.434 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002755/0.2909, allocations: 1.395 MB / 0.6181 GB, free: 3.039 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008798/0.2997, allocations: 4.157 MB / 0.6222 GB, free: 14.76 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.934e-05/0.2997, allocations: 55.81 kB / 0.6223 GB, free: 14.7 MB / 446.1 MB Notification: Performance of pre-optimization done (n=137): time 4.288e-06/0.2997, allocations: 0 / 0.6223 GB, free: 14.7 MB / 446.1 MB Notification: Performance of matching and sorting (n=159): time 0.01444/0.3142, allocations: 6.404 MB / 0.6285 GB, free: 8.129 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.479e-05/0.3142, allocations: 64.72 kB / 0.6286 GB, free: 8.055 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004394/0.3186, allocations: 2.187 MB / 0.6307 GB, free: 5.836 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002427/0.3189, allocations: 53.7 kB / 0.6308 GB, free: 5.777 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00162/0.3205, allocations: 1.783 MB / 0.6325 GB, free: 3.977 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007742/0.3213, allocations: 0.5733 MB / 0.6331 GB, free: 3.398 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008835/0.3221, allocations: 408.1 kB / 0.6334 GB, free: 2.992 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001386/0.3223, allocations: 305.1 kB / 0.6337 GB, free: 2.691 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001657/0.3239, allocations: 0.8281 MB / 0.6345 GB, free: 1.859 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002581/0.3265, allocations: 1.59 MB / 0.6361 GB, free: 15.91 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004743/0.3313, allocations: 2.588 MB / 0.6386 GB, free: 12.98 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.368e-05/0.3313, allocations: 8 kB / 0.6386 GB, free: 12.98 MB / 462.1 MB Notification: Performance of matching and sorting (n=284) (initialization): time 0.006413/0.3377, allocations: 3.031 MB / 0.6416 GB, free: 9.91 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.398e-05/0.3377, allocations: 16 kB / 0.6416 GB, free: 9.895 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.921e-05/0.3378, allocations: 28.03 kB / 0.6416 GB, free: 9.867 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000898/0.3387, allocations: 302.2 kB / 0.6419 GB, free: 9.562 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001963/0.3407, allocations: 0.503 MB / 0.6424 GB, free: 9.059 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005715/0.3464, allocations: 4.878 MB / 0.6472 GB, free: 3.902 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002146/0.3485, allocations: 103.9 kB / 0.6473 GB, free: 3.801 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000398/0.3489, allocations: 99.98 kB / 0.6474 GB, free: 3.703 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.002525/0.3514, allocations: 1.13 MB / 0.6485 GB, free: 2.562 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006743/0.3521, allocations: 250.5 kB / 0.6487 GB, free: 2.316 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.252/0.6041, allocations: 2.382 MB / 0.651 GB, free: 107.9 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.175e-05/0.6041, allocations: 15.91 kB / 0.6511 GB, free: 107.9 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.07e-05/0.6042, allocations: 6.125 kB / 0.6511 GB, free: 107.9 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.174e-05/0.6042, allocations: 8.922 kB / 0.6511 GB, free: 107.9 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01026/0.6145, allocations: 5.683 MB / 0.6566 GB, free: 106 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.855e-06/0.6145, allocations: 1.531 kB / 0.6566 GB, free: 106 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001187/0.6157, allocations: 274.6 kB / 0.6569 GB, free: 106 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007947/0.6165, allocations: 318.2 kB / 0.6572 GB, free: 105.9 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001037/0.6166, allocations: 38.73 kB / 0.6572 GB, free: 105.9 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005578/0.6221, allocations: 7.028 MB / 0.6641 GB, free: 100 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/0.6221, allocations: 0 / 0.6641 GB, free: 100 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004892/0.627, allocations: 3.486 MB / 0.6675 GB, free: 98.38 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001312/0.6284, allocations: 0.4978 MB / 0.668 GB, free: 98.15 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003298/0.6287, allocations: 31.84 kB / 0.668 GB, free: 98.13 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001016/0.6297, allocations: 62.83 kB / 0.6681 GB, free: 98.11 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002626/0.63, allocations: 126.2 kB / 0.6682 GB, free: 98.09 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.162e-05/0.63, allocations: 43.3 kB / 0.6682 GB, free: 98.08 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001958/0.632, allocations: 1.472 MB / 0.6697 GB, free: 97.49 MB / 462.1 MB Notification: Performance of sort global known variables: time 9e-08/0.632, allocations: 0 / 0.6697 GB, free: 97.49 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002122/0.6341, allocations: 0.6516 MB / 0.6703 GB, free: 97.43 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.004741/0.6389, allocations: 4.102 MB / 0.6743 GB, free: 95.26 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.003599/0.6425, allocations: 2.362 MB / 0.6766 GB, free: 94.18 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.342e-06/0.6425, allocations: 3.844 kB / 0.6766 GB, free: 94.18 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001843/0.6443, allocations: 1.336 MB / 0.6779 GB, free: 93.45 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002708/0.647, allocations: 0.573 MB / 0.6785 GB, free: 93.26 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02946/0.6765, allocations: 23.68 MB / 0.7016 GB, free: 69.62 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00165/0.6781, allocations: 2.527 MB / 0.7041 GB, free: 67.07 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001699/0.6798, allocations: 0.5195 MB / 0.7046 GB, free: 66.55 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001474/0.6813, allocations: 1.351 MB / 0.7059 GB, free: 65.2 MB / 462.1 MB Notification: Performance of SimCode: time 1.593e-06/0.6813, allocations: 0 / 0.7059 GB, free: 65.2 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1024/0.7837, allocations: 58.36 MB / 0.7629 GB, free: 7.367 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.02/15.8, allocations: 18.73 kB / 0.7629 GB, free: 7.352 MB / 462.1 MB " [Timeout remaining time 644] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_SynchronousMachines_SMEE_Synchronization3_fmu --startTime=0 --stopTime=0.3 --stepSize=0.000100033 --timeout=50 --tolerance=1e-08 HanserModelica_HanserModelica_SynchronousMachines_SMEE_Synchronization3.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_Synchronization3.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 19.32102669822052] Failed to read output from testmodel.py, exit status != 0: 16.116828634869307 15.949675886 15.743446608 Calling exit ...