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.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.001279/0.001279, allocations: 101.5 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.413/1.413, allocations: 230.6 MB / 253.4 MB, free: 14.42 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.001598/0.001598, allocations: 211.4 kB / 310 MB, free: 3.086 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.03999/0.03999, allocations: 8.916 MB / 375.4 MB, free: 6.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_Synchronization3,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_Synchronization3",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_Synchronization3,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_Synchronization3",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.002514/0.002514, allocations: 91.81 kB / 0.49 GB, free: 44.84 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08273/0.08524, allocations: 55.6 MB / 0.5443 GB, free: 5.148 MB / 366.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Synchronization3): time 0.01878/0.104, allocations: 16.58 MB / 0.5605 GB, free: 4.484 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2127/0.3167, allocations: 5.595 MB / 0.566 GB, free: 9.434 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003021/0.3197, allocations: 118.6 kB / 0.5661 GB, free: 9.434 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00451/0.3242, allocations: 1.262 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.005673/0.3299, allocations: 1.596 MB / 0.5689 GB, free: 9.395 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00302/0.3329, allocations: 1.047 MB / 0.5699 GB, free: 9.375 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.006621/0.3395, allocations: 4.753 MB / 0.5745 GB, free: 8.777 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003513/0.3431, allocations: 1.996 MB / 0.5765 GB, free: 8.527 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004557/0.3476, allocations: 2.17 MB / 0.5786 GB, free: 7.984 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005215/0.3528, allocations: 2.598 MB / 0.5811 GB, free: 6.816 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002102/0.3549, allocations: 0.5707 MB / 0.5817 GB, free: 6.816 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003571/0.3585, allocations: 0.8113 MB / 0.5825 GB, free: 6.738 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00192/0.3604, allocations: 1.303 MB / 0.5838 GB, free: 5.91 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005429/0.3659, allocations: 2.461 MB / 0.5862 GB, free: 4.281 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01191/0.3778, allocations: 7.57 MB / 0.5936 GB, free: 0.5195 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.262e-06/0.3778, allocations: 0 / 0.5936 GB, free: 0.5195 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.3778, allocations: 0 / 0.5936 GB, free: 0.5195 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002284/0.378, allocations: 1.094 kB / 0.5936 GB, free: 0.5195 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.01782/0.3958, allocations: 5.046 MB / 0.5985 GB, free: 13.16 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.521e-05/0.3959, allocations: 13.11 kB / 0.5985 GB, free: 13.16 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0002256/0.3961, allocations: 112.6 kB / 0.5986 GB, free: 13.14 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00194/0.398, allocations: 0.5646 MB / 0.5992 GB, free: 12.74 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006309/0.4043, allocations: 0.9758 MB / 0.6001 GB, free: 12.27 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007544/0.4119, allocations: 2.812 MB / 0.6029 GB, free: 10.35 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002591/0.4122, allocations: 283.3 kB / 0.6031 GB, free: 10.22 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001125/0.4133, allocations: 371.2 kB / 0.6035 GB, free: 10.09 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01048/0.4238, allocations: 4.782 MB / 0.6082 GB, free: 7.281 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001001/0.4239, allocations: 6.859 kB / 0.6082 GB, free: 7.277 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004266/0.4243, allocations: 149.9 kB / 0.6083 GB, free: 7.164 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001346/0.4244, allocations: 159.4 kB / 0.6085 GB, free: 7.141 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00877/0.4332, allocations: 4.053 MB / 0.6124 GB, free: 4.133 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02952/0.4627, allocations: 15.14 MB / 0.6272 GB, free: 4.727 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005872/0.4686, allocations: 2.741 MB / 0.6299 GB, free: 2.137 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005769/0.4744, allocations: 1.813 MB / 0.6316 GB, free: 348 kB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01305/0.4874, allocations: 4.08 MB / 0.6356 GB, free: 12.28 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.785e-05/0.4875, allocations: 51.8 kB / 0.6357 GB, free: 12.23 MB / 430.1 MB Notification: Performance of pre-optimization done (n=137): time 6.432e-06/0.4875, allocations: 0 / 0.6357 GB, free: 12.23 MB / 430.1 MB Notification: Performance of matching and sorting (n=159): time 0.02206/0.5095, allocations: 6.237 MB / 0.6418 GB, free: 5.961 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.145e-05/0.5096, allocations: 68.72 kB / 0.6418 GB, free: 5.879 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005982/0.5156, allocations: 2.224 MB / 0.644 GB, free: 3.625 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002923/0.5159, allocations: 53.64 kB / 0.6441 GB, free: 3.566 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002266/0.5181, allocations: 1.797 MB / 0.6458 GB, free: 1.762 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008638/0.519, allocations: 0.5775 MB / 0.6464 GB, free: 1.191 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001134/0.5201, allocations: 416.1 kB / 0.6468 GB, free: 0.7773 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001643/0.5203, allocations: 301.1 kB / 0.6471 GB, free: 492 kB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002309/0.5226, allocations: 0.8399 MB / 0.6479 GB, free: 15.64 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00318/0.5258, allocations: 1.608 MB / 0.6495 GB, free: 13.68 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006257/0.5321, allocations: 2.621 MB / 0.652 GB, free: 10.71 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.112e-05/0.5321, allocations: 11.94 kB / 0.652 GB, free: 10.7 MB / 446.1 MB Notification: Performance of matching and sorting (n=285) (initialization): time 0.006488/0.5386, allocations: 3.045 MB / 0.655 GB, free: 7.641 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.212e-05/0.5386, allocations: 16.75 kB / 0.655 GB, free: 7.625 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.487e-05/0.5387, allocations: 31.98 kB / 0.655 GB, free: 7.594 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001053/0.5397, allocations: 350.3 kB / 0.6554 GB, free: 7.242 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002038/0.5418, allocations: 0.4953 MB / 0.6559 GB, free: 6.746 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006072/0.5478, allocations: 5.076 MB / 0.6608 GB, free: 1.453 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002215/0.55, allocations: 103.9 kB / 0.6609 GB, free: 1.352 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002921/0.5503, allocations: 100.2 kB / 0.661 GB, free: 1.254 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.002464/0.5528, allocations: 1.134 MB / 0.6621 GB, free: 112 kB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007132/0.5535, allocations: 262.5 kB / 0.6624 GB, free: 15.85 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004682/0.5582, allocations: 2.317 MB / 0.6646 GB, free: 13.51 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.741e-05/0.5582, allocations: 12 kB / 0.6646 GB, free: 13.5 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.068e-05/0.5582, allocations: 8 kB / 0.6647 GB, free: 13.49 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.939e-05/0.5582, allocations: 7.969 kB / 0.6647 GB, free: 13.48 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0105/0.5687, allocations: 5.648 MB / 0.6702 GB, free: 7.781 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.137e-06/0.5687, allocations: 4 kB / 0.6702 GB, free: 7.777 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001232/0.57, allocations: 271.8 kB / 0.6704 GB, free: 7.512 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001012/0.571, allocations: 358.2 kB / 0.6708 GB, free: 7.152 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001151/0.5711, allocations: 47.98 kB / 0.6708 GB, free: 7.105 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007892/0.579, allocations: 7.094 MB / 0.6778 GB, free: 15.68 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.544e-06/0.579, allocations: 7.969 kB / 0.6778 GB, free: 15.67 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006074/0.5851, allocations: 3.447 MB / 0.6811 GB, free: 12.18 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00145/0.5865, allocations: 438.3 kB / 0.6815 GB, free: 11.75 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005436/0.5871, allocations: 32 kB / 0.6816 GB, free: 11.72 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001222/0.5883, allocations: 67.95 kB / 0.6816 GB, free: 11.65 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003009/0.5886, allocations: 121.1 kB / 0.6818 GB, free: 11.53 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001048/0.5887, allocations: 40.11 kB / 0.6818 GB, free: 11.49 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.002602/0.5913, allocations: 1.5 MB / 0.6833 GB, free: 9.977 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.5913, allocations: 0 / 0.6833 GB, free: 9.977 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.003002/0.5943, allocations: 0.6601 MB / 0.6839 GB, free: 9.316 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.006866/0.6012, allocations: 4.057 MB / 0.6879 GB, free: 5.207 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.004596/0.6058, allocations: 2.349 MB / 0.6902 GB, free: 2.832 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 5.37e-06/0.6058, allocations: 0 / 0.6902 GB, free: 2.832 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002469/0.6082, allocations: 1.371 MB / 0.6915 GB, free: 1.422 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003389/0.6116, allocations: 0.5888 MB / 0.6921 GB, free: 0.8398 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04467/0.6563, allocations: 23.84 MB / 0.7154 GB, free: 7.926 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003355/0.6597, allocations: 2.527 MB / 0.7178 GB, free: 5.371 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.002047/0.6617, allocations: 0.5122 MB / 0.7183 GB, free: 4.855 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002494/0.6642, allocations: 1.366 MB / 0.7197 GB, free: 3.488 MB / 0.4981 GB Notification: Performance of SimCode: time 1.092e-06/0.6642, allocations: 0 / 0.7197 GB, free: 3.488 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.317/0.9812, allocations: 60.8 MB / 0.779 GB, free: 179.1 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.58/17.56, allocations: 7.469 kB / 0.779 GB, free: 179.1 MB / 0.545 GB " [Timeout remaining time 642] (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: 20.82134413300082] Failed to read output from testmodel.py, exit status != 0: 17.756605196977034 17.772070092 17.391267133 Calling exit ...