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.001645/0.001645, allocations: 114.3 kB / 18.94 MB, free: 2.934 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.549/1.549, allocations: 230.6 MB / 252.6 MB, free: 8.281 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.002908/0.002908, allocations: 203.6 kB / 309.2 MB, free: 3.125 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.06855/0.06855, allocations: 8.92 MB / 374.6 MB, free: 1.867 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.00269/0.00269, allocations: 88.14 kB / 0.4893 GB, free: 7.293 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3047/0.3074, allocations: 55.6 MB / 0.5435 GB, free: 26.75 MB / 382.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Synchronization2): time 0.01298/0.3204, allocations: 16.57 MB / 0.5597 GB, free: 14.88 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0109/0.3313, allocations: 5.598 MB / 0.5652 GB, free: 10.79 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003293/0.3346, allocations: 113.8 kB / 0.5653 GB, free: 10.75 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005561/0.3402, allocations: 1.272 MB / 0.5666 GB, free: 10.09 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.00894/0.3491, allocations: 1.592 MB / 0.5681 GB, free: 9.035 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004312/0.3534, allocations: 1.06 MB / 0.5691 GB, free: 8.359 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0107/0.3641, allocations: 4.744 MB / 0.5738 GB, free: 5.895 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005419/0.3695, allocations: 1.991 MB / 0.5757 GB, free: 4.809 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004657/0.3742, allocations: 2.177 MB / 0.5778 GB, free: 3.73 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005499/0.3797, allocations: 2.599 MB / 0.5804 GB, free: 2.465 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001544/0.3812, allocations: 0.5705 MB / 0.5809 GB, free: 2.465 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00276/0.384, allocations: 0.803 MB / 0.5817 GB, free: 2.387 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0012/0.3852, allocations: 1.302 MB / 0.583 GB, free: 1.543 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003724/0.3889, allocations: 2.454 MB / 0.5854 GB, free: 15.88 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01156/0.4005, allocations: 7.571 MB / 0.5928 GB, free: 10.17 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.023e-06/0.4005, allocations: 5.062 kB / 0.5928 GB, free: 10.17 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.4005, allocations: 0 / 0.5928 GB, free: 10.17 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0002009/0.4007, allocations: 0 / 0.5928 GB, free: 10.17 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.01495/0.4156, allocations: 5.052 MB / 0.5977 GB, free: 5.43 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.657e-05/0.4157, allocations: 12.03 kB / 0.5977 GB, free: 5.418 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001096/0.4168, allocations: 0.557 MB / 0.5983 GB, free: 4.852 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005387/0.4222, allocations: 0.978 MB / 0.5992 GB, free: 3.871 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007403/0.4296, allocations: 2.806 MB / 0.602 GB, free: 1.023 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002698/0.4298, allocations: 283.8 kB / 0.6022 GB, free: 0.7461 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009938/0.4308, allocations: 375.8 kB / 0.6026 GB, free: 388 kB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01032/0.4411, allocations: 4.784 MB / 0.6073 GB, free: 11.55 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.641e-05/0.4412, allocations: 7.953 kB / 0.6073 GB, free: 11.54 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003618/0.4416, allocations: 144 kB / 0.6074 GB, free: 11.4 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001797/0.4418, allocations: 163.3 kB / 0.6076 GB, free: 11.24 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009166/0.4509, allocations: 4.046 MB / 0.6115 GB, free: 7.191 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03301/0.4839, allocations: 15.14 MB / 0.6263 GB, free: 7.625 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005756/0.4897, allocations: 2.759 MB / 0.629 GB, free: 4.988 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004104/0.4938, allocations: 1.807 MB / 0.6308 GB, free: 3.184 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009034/0.5028, allocations: 4.064 MB / 0.6347 GB, free: 15.08 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.522e-05/0.5029, allocations: 55.81 kB / 0.6348 GB, free: 15.02 MB / 446.1 MB Notification: Performance of pre-optimization done (n=137): time 2.965e-06/0.5029, allocations: 0 / 0.6348 GB, free: 15.02 MB / 446.1 MB Notification: Performance of matching and sorting (n=159): time 0.01519/0.5181, allocations: 6.235 MB / 0.6409 GB, free: 8.746 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.718e-05/0.5182, allocations: 72.72 kB / 0.6409 GB, free: 8.66 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004308/0.5225, allocations: 2.213 MB / 0.6431 GB, free: 6.418 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001618/0.5226, allocations: 57.64 kB / 0.6432 GB, free: 6.355 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001567/0.5242, allocations: 1.791 MB / 0.6449 GB, free: 4.547 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006105/0.5248, allocations: 0.5733 MB / 0.6455 GB, free: 3.969 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007629/0.5256, allocations: 412 kB / 0.6459 GB, free: 3.559 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001367/0.5257, allocations: 305.1 kB / 0.6462 GB, free: 3.258 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001584/0.5273, allocations: 0.8398 MB / 0.647 GB, free: 2.414 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002306/0.5296, allocations: 1.605 MB / 0.6485 GB, free: 468 kB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003987/0.5336, allocations: 2.616 MB / 0.6511 GB, free: 13.5 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.833e-05/0.5336, allocations: 8 kB / 0.6511 GB, free: 13.49 MB / 462.1 MB Notification: Performance of matching and sorting (n=284) (initialization): time 0.00614/0.5397, allocations: 3.049 MB / 0.6541 GB, free: 10.42 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.785e-05/0.5398, allocations: 16 kB / 0.6541 GB, free: 10.41 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.827e-05/0.5398, allocations: 27.98 kB / 0.6541 GB, free: 10.38 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001048/0.5409, allocations: 342.7 kB / 0.6545 GB, free: 10.04 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001913/0.5428, allocations: 0.4953 MB / 0.6549 GB, free: 9.539 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007007/0.5498, allocations: 5.088 MB / 0.6599 GB, free: 4.227 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003412/0.5532, allocations: 99.95 kB / 0.66 GB, free: 4.129 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005692/0.5538, allocations: 104 kB / 0.6601 GB, free: 4.027 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.003353/0.5571, allocations: 1.143 MB / 0.6612 GB, free: 2.875 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001186/0.5583, allocations: 250.4 kB / 0.6615 GB, free: 2.629 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005565/0.5639, allocations: 2.313 MB / 0.6637 GB, free: 296 kB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.449e-05/0.5639, allocations: 16 kB / 0.6637 GB, free: 280 kB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.82e-05/0.5639, allocations: 8 kB / 0.6637 GB, free: 272 kB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.7e-05/0.5639, allocations: 7.969 kB / 0.6637 GB, free: 264 kB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01161/0.5756, allocations: 5.649 MB / 0.6693 GB, free: 10.52 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.073e-05/0.5756, allocations: 4 kB / 0.6693 GB, free: 10.52 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001297/0.5769, allocations: 267.6 kB / 0.6695 GB, free: 10.25 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000999/0.5779, allocations: 370.4 kB / 0.6699 GB, free: 9.883 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001294/0.578, allocations: 35.98 kB / 0.6699 GB, free: 9.848 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008658/0.5867, allocations: 7.094 MB / 0.6768 GB, free: 2.41 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.335e-06/0.5867, allocations: 11.95 kB / 0.6768 GB, free: 2.398 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006891/0.5936, allocations: 3.441 MB / 0.6802 GB, free: 14.91 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001487/0.595, allocations: 446.3 kB / 0.6806 GB, free: 14.48 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006277/0.5957, allocations: 28.12 kB / 0.6807 GB, free: 14.45 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001447/0.5971, allocations: 67.95 kB / 0.6807 GB, free: 14.38 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002999/0.5974, allocations: 125 kB / 0.6808 GB, free: 14.26 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001187/0.5975, allocations: 47.98 kB / 0.6809 GB, free: 14.21 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003108/0.6006, allocations: 1.492 MB / 0.6823 GB, free: 12.7 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.6006, allocations: 0 / 0.6823 GB, free: 12.7 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.003175/0.6038, allocations: 0.6601 MB / 0.683 GB, free: 12.04 MB / 494.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.007028/0.6108, allocations: 4.051 MB / 0.6869 GB, free: 7.934 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.004848/0.6157, allocations: 2.342 MB / 0.6892 GB, free: 5.566 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 8.336e-06/0.6157, allocations: 0 / 0.6892 GB, free: 5.566 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002579/0.6183, allocations: 1.37 MB / 0.6906 GB, free: 4.16 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003793/0.6221, allocations: 0.5887 MB / 0.6911 GB, free: 3.578 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2606/0.8827, allocations: 23.8 MB / 0.7144 GB, free: 114.2 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002291/0.885, allocations: 2.525 MB / 0.7169 GB, free: 113.1 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.00181/0.8868, allocations: 0.5154 MB / 0.7174 GB, free: 113 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001489/0.8883, allocations: 1.368 MB / 0.7187 GB, free: 111.9 MB / 494.1 MB Notification: Performance of SimCode: time 1.032e-06/0.8883, allocations: 0 / 0.7187 GB, free: 111.9 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.11/0.9983, allocations: 60.75 MB / 0.778 GB, free: 64.9 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.47/17.47, allocations: 4.062 kB / 0.778 GB, free: 64.9 MB / 494.1 MB " [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.811407112982124] Failed to read output from testmodel.py, exit status != 0: 17.618429293856025 17.631057418 17.227324169 Calling exit ...