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.001322/0.001322, allocations: 101.8 kB / 19.73 MB, free: 2.23 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.49/1.49, allocations: 230.6 MB / 253.4 MB, free: 14.48 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.001627/0.001627, allocations: 209.4 kB / 310 MB, free: 3.133 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.04164/0.04164, allocations: 8.911 MB / 375.4 MB, free: 6.758 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_Synchronization2,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_Synchronization2",fmuType="cs",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.002397/0.002397, allocations: 83.89 kB / 0.49 GB, free: 44.86 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08935/0.09175, allocations: 55.6 MB / 0.5443 GB, free: 5.152 MB / 366.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Synchronization2): time 0.01955/0.1113, allocations: 16.58 MB / 0.5605 GB, free: 4.492 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2239/0.3352, allocations: 5.598 MB / 0.566 GB, free: 9.434 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002717/0.3379, allocations: 114.8 kB / 0.5661 GB, free: 9.434 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003544/0.3414, allocations: 1.263 MB / 0.5673 GB, free: 9.426 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.1/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.004537/0.346, allocations: 1.597 MB / 0.5689 GB, free: 9.395 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002318/0.3483, allocations: 1.043 MB / 0.5699 GB, free: 9.375 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.005424/0.3537, allocations: 4.756 MB / 0.5745 GB, free: 8.762 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003121/0.3568, allocations: 1.994 MB / 0.5765 GB, free: 8.516 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003967/0.3608, allocations: 2.168 MB / 0.5786 GB, free: 7.996 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005379/0.3662, allocations: 2.6 MB / 0.5812 GB, free: 6.824 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001473/0.3677, allocations: 0.5699 MB / 0.5817 GB, free: 6.824 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002918/0.3706, allocations: 0.8084 MB / 0.5825 GB, free: 6.75 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00137/0.3719, allocations: 1.308 MB / 0.5838 GB, free: 5.918 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004277/0.3762, allocations: 2.448 MB / 0.5862 GB, free: 4.297 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01/0.3862, allocations: 7.576 MB / 0.5936 GB, free: 0.5469 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.233e-06/0.3862, allocations: 0.8125 kB / 0.5936 GB, free: 0.5469 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.164e-06/0.3862, allocations: 0 / 0.5936 GB, free: 0.5469 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002736/0.3865, allocations: 0 / 0.5936 GB, free: 0.5469 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.01761/0.4041, allocations: 5.047 MB / 0.5985 GB, free: 13.19 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.639e-05/0.4042, allocations: 13.77 kB / 0.5985 GB, free: 13.18 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0002237/0.4044, allocations: 108.9 kB / 0.5986 GB, free: 13.16 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001857/0.4063, allocations: 0.5626 MB / 0.5992 GB, free: 12.77 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006361/0.4126, allocations: 0.9746 MB / 0.6001 GB, free: 12.3 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008184/0.4208, allocations: 2.82 MB / 0.6029 GB, free: 10.38 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003777/0.4212, allocations: 282 kB / 0.6031 GB, free: 10.25 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001594/0.4228, allocations: 369.3 kB / 0.6035 GB, free: 10.12 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01328/0.436, allocations: 4.787 MB / 0.6082 GB, free: 7.309 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001282/0.4362, allocations: 7.938 kB / 0.6082 GB, free: 7.301 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005855/0.4368, allocations: 153.6 kB / 0.6083 GB, free: 7.184 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001841/0.4369, allocations: 152.6 kB / 0.6085 GB, free: 7.168 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01238/0.4493, allocations: 4.06 MB / 0.6124 GB, free: 4.168 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03249/0.4818, allocations: 15.14 MB / 0.6272 GB, free: 4.762 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005765/0.4876, allocations: 2.731 MB / 0.6299 GB, free: 2.184 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003944/0.4915, allocations: 1.811 MB / 0.6316 GB, free: 392 kB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00986/0.5014, allocations: 4.079 MB / 0.6356 GB, free: 12.32 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.459e-05/0.5014, allocations: 47.88 kB / 0.6357 GB, free: 12.27 MB / 430.1 MB Notification: Performance of pre-optimization done (n=137): time 3.436e-06/0.5014, allocations: 0 / 0.6357 GB, free: 12.27 MB / 430.1 MB Notification: Performance of matching and sorting (n=159): time 0.01589/0.5173, allocations: 6.24 MB / 0.6418 GB, free: 6 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.817e-05/0.5174, allocations: 72.66 kB / 0.6418 GB, free: 5.914 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004138/0.5215, allocations: 2.217 MB / 0.644 GB, free: 3.668 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003043/0.5218, allocations: 53.7 kB / 0.6441 GB, free: 3.609 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001506/0.5233, allocations: 1.802 MB / 0.6458 GB, free: 1.805 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000638/0.524, allocations: 0.5733 MB / 0.6464 GB, free: 1.238 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006808/0.5247, allocations: 420 kB / 0.6468 GB, free: 0.8203 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001329/0.5248, allocations: 309.1 kB / 0.6471 GB, free: 0.5156 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001477/0.5263, allocations: 0.836 MB / 0.6479 GB, free: 15.68 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002032/0.5283, allocations: 1.609 MB / 0.6495 GB, free: 13.71 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003788/0.5321, allocations: 2.625 MB / 0.652 GB, free: 10.75 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2e-05/0.5321, allocations: 8 kB / 0.652 GB, free: 10.74 MB / 446.1 MB Notification: Performance of matching and sorting (n=285) (initialization): time 0.005849/0.538, allocations: 3.053 MB / 0.655 GB, free: 7.672 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.085e-05/0.538, allocations: 16.75 kB / 0.655 GB, free: 7.656 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.171e-05/0.538, allocations: 28 kB / 0.6551 GB, free: 7.629 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009781/0.539, allocations: 342.3 kB / 0.6554 GB, free: 7.285 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001928/0.541, allocations: 0.5031 MB / 0.6559 GB, free: 6.781 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005964/0.5469, allocations: 5.065 MB / 0.6608 GB, free: 1.496 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002564/0.5495, allocations: 103.9 kB / 0.6609 GB, free: 1.395 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003496/0.5498, allocations: 99.98 kB / 0.661 GB, free: 1.297 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 112 * 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 (262): * Single equations (assignments): 259 * 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.002361/0.5522, allocations: 1.137 MB / 0.6621 GB, free: 152 kB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007246/0.5529, allocations: 250.5 kB / 0.6624 GB, free: 15.9 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004647/0.5576, allocations: 2.326 MB / 0.6646 GB, free: 13.55 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.679e-05/0.5576, allocations: 16.19 kB / 0.6646 GB, free: 13.54 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.033e-05/0.5576, allocations: 4 kB / 0.6647 GB, free: 13.54 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.609e-05/0.5576, allocations: 15.91 kB / 0.6647 GB, free: 13.52 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01085/0.5684, allocations: 5.649 MB / 0.6702 GB, free: 7.82 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.374e-06/0.5685, allocations: 0 / 0.6702 GB, free: 7.82 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001245/0.5697, allocations: 267.8 kB / 0.6704 GB, free: 7.559 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001017/0.5707, allocations: 362.2 kB / 0.6708 GB, free: 7.195 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001407/0.5709, allocations: 43.98 kB / 0.6708 GB, free: 7.152 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008376/0.5792, allocations: 7.097 MB / 0.6778 GB, free: 15.72 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.845e-06/0.5792, allocations: 7.969 kB / 0.6778 GB, free: 15.71 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006933/0.5862, allocations: 3.443 MB / 0.6811 GB, free: 12.23 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001745/0.5879, allocations: 442.2 kB / 0.6815 GB, free: 11.79 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004711/0.5884, allocations: 35.98 kB / 0.6816 GB, free: 11.76 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001118/0.5895, allocations: 63.97 kB / 0.6816 GB, free: 11.7 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003048/0.5898, allocations: 125 kB / 0.6818 GB, free: 11.57 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001001/0.5899, allocations: 44.11 kB / 0.6818 GB, free: 11.53 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.002433/0.5923, allocations: 1.496 MB / 0.6833 GB, free: 10.02 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.5923, allocations: 0 / 0.6833 GB, free: 10.02 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.002574/0.5949, allocations: 0.6523 MB / 0.6839 GB, free: 9.363 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 (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.006085/0.601, allocations: 4.069 MB / 0.6879 GB, free: 5.242 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.00428/0.6053, allocations: 2.345 MB / 0.6902 GB, free: 2.871 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 5.53e-06/0.6053, allocations: 0 / 0.6902 GB, free: 2.871 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002422/0.6077, allocations: 1.377 MB / 0.6915 GB, free: 1.457 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003106/0.6108, allocations: 0.5748 MB / 0.6921 GB, free: 0.8867 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04695/0.6578, allocations: 23.84 MB / 0.7154 GB, free: 7.969 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002792/0.6606, allocations: 2.523 MB / 0.7178 GB, free: 5.418 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.001868/0.6624, allocations: 0.52 MB / 0.7183 GB, free: 4.895 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002117/0.6645, allocations: 1.362 MB / 0.7197 GB, free: 3.531 MB / 0.4981 GB Notification: Performance of SimCode: time 1.462e-06/0.6645, allocations: 0 / 0.7197 GB, free: 3.531 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3665/1.031, allocations: 60.79 MB / 0.779 GB, free: 179.1 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.32/17.35, allocations: 8.984 kB / 0.779 GB, free: 179.1 MB / 0.545 GB " [Timeout remaining time 642] (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: 20.816312966984697] Failed to read output from testmodel.py, exit status != 0: 17.552232031011954 17.565785802 17.17668859 Calling exit ...