Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_DOL.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.001491/0.001491, allocations: 117.5 kB / 17.16 MB, free: 5.863 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.672/1.672, allocations: 230.6 MB / 250.5 MB, free: 9.199 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.002025/0.002025, allocations: 204.1 kB / 306.7 MB, free: 4.281 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.04267/0.04267, allocations: 8.91 MB / 371.7 MB, free: 3.41 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_DOL,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_DOL",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_DOL,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_DOL",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.002509/0.002509, allocations: 82.02 kB / 496.5 MB, free: 4.883 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1506/0.1531, allocations: 55.58 MB / 0.5391 GB, free: 6.434 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_DOL): time 0.02417/0.1773, allocations: 17.42 MB / 0.5561 GB, free: 4.93 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01702/0.1943, allocations: 5.745 MB / 0.5617 GB, free: 15.16 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005732/0.2, allocations: 127.2 kB / 0.5618 GB, free: 15.04 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005897/0.2059, allocations: 1.32 MB / 0.5631 GB, free: 13.71 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.1/SynchronousMachines/SMEE_DOL.mo:12:3-13:30:writable] Warning: Conditional component 'ir' is used in a non-connect context. Notification: Performance of NFTyping.typeBindings: time 0.01041/0.2163, allocations: 1.646 MB / 0.5647 GB, free: 12.05 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005862/0.2222, allocations: 1.101 MB / 0.5658 GB, free: 10.96 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01322/0.2354, allocations: 5.059 MB / 0.5708 GB, free: 5.875 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006781/0.2422, allocations: 2.941 MB / 0.5736 GB, free: 2.852 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005556/0.2478, allocations: 2.333 MB / 0.5759 GB, free: 0.5117 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006662/0.2544, allocations: 2.818 MB / 0.5787 GB, free: 13.68 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002164/0.2566, allocations: 0.6211 MB / 0.5793 GB, free: 13.06 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003078/0.2597, allocations: 0.8669 MB / 0.5801 GB, free: 12.2 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00199/0.2616, allocations: 1.441 MB / 0.5815 GB, free: 10.75 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004968/0.2666, allocations: 2.66 MB / 0.5841 GB, free: 8.078 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01317/0.2798, allocations: 8.191 MB / 0.5921 GB, free: 15.86 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.768e-06/0.2798, allocations: 0 / 0.5921 GB, free: 15.86 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.775e-06/0.2798, allocations: 0 / 0.5921 GB, free: 15.86 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0003377/0.2801, allocations: 4 kB / 0.5921 GB, free: 15.86 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1052 * Number of variables: 1052 Notification: Performance of Generate backend data structure: time 0.02135/0.3015, allocations: 5.552 MB / 0.5975 GB, free: 10.22 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.565e-05/0.3016, allocations: 12.03 kB / 0.5975 GB, free: 10.21 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0002016/0.3018, allocations: 112.3 kB / 0.5977 GB, free: 10.09 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002053/0.3038, allocations: 0.5519 MB / 0.5982 GB, free: 9.531 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006498/0.3103, allocations: 1.028 MB / 0.5992 GB, free: 8.5 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008437/0.3187, allocations: 3.087 MB / 0.6022 GB, free: 5.359 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003428/0.3191, allocations: 304.2 kB / 0.6025 GB, free: 5.059 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001659/0.3207, allocations: 396 kB / 0.6029 GB, free: 4.672 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01343/0.3342, allocations: 5.225 MB / 0.608 GB, free: 15.36 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000112/0.3343, allocations: 19.88 kB / 0.608 GB, free: 15.34 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004398/0.3347, allocations: 160 kB / 0.6082 GB, free: 15.18 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002188/0.3349, allocations: 176 kB / 0.6083 GB, free: 15.01 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01074/0.3457, allocations: 4.47 MB / 0.6127 GB, free: 10.52 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03674/0.3824, allocations: 16.75 MB / 0.629 GB, free: 9.277 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01045/0.3929, allocations: 8.534 MB / 0.6374 GB, free: 15.66 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005211/0.3981, allocations: 1.998 MB / 0.6393 GB, free: 13.66 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01324/0.4113, allocations: 5.789 MB / 0.645 GB, free: 7.543 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.072e-05/0.4114, allocations: 51.88 kB / 0.645 GB, free: 7.484 MB / 462.1 MB Notification: Performance of pre-optimization done (n=158): time 5.049e-06/0.4114, allocations: 0 / 0.645 GB, free: 7.484 MB / 462.1 MB Notification: Performance of matching and sorting (n=161): time 0.01695/0.4283, allocations: 6.397 MB / 0.6513 GB, free: 0.9414 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.368e-05/0.4284, allocations: 72.66 kB / 0.6514 GB, free: 0.8594 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.284/0.7124, allocations: 2.308 MB / 0.6536 GB, free: 100 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004345/0.7128, allocations: 56.14 kB / 0.6537 GB, free: 99.99 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001744/0.7145, allocations: 1.909 MB / 0.6555 GB, free: 99.68 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008005/0.7153, allocations: 0.5794 MB / 0.6561 GB, free: 99.3 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008377/0.7162, allocations: 401.9 kB / 0.6565 GB, free: 99.1 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 7.446e-05/0.7163, allocations: 301.8 kB / 0.6568 GB, free: 98.8 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001881/0.7181, allocations: 0.8582 MB / 0.6576 GB, free: 98.49 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002663/0.7208, allocations: 1.578 MB / 0.6591 GB, free: 97.27 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004089/0.7249, allocations: 2.592 MB / 0.6617 GB, free: 95.58 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.056e-05/0.7249, allocations: 10.44 kB / 0.6617 GB, free: 95.58 MB / 462.1 MB Notification: Performance of matching and sorting (n=276) (initialization): time 0.006957/0.7319, allocations: 2.992 MB / 0.6646 GB, free: 94.29 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.752e-05/0.7319, allocations: 20.47 kB / 0.6646 GB, free: 94.29 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.59e-05/0.732, allocations: 26.95 kB / 0.6646 GB, free: 94.29 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005448/0.7325, allocations: 172.6 kB / 0.6648 GB, free: 94.24 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002406/0.735, allocations: 0.5338 MB / 0.6653 GB, free: 94.18 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002624/0.7376, allocations: 2.42 MB / 0.6677 GB, free: 92.23 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00263/0.7402, allocations: 120.2 kB / 0.6678 GB, free: 92.18 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004429/0.7406, allocations: 98.14 kB / 0.6679 GB, free: 92.16 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 103 * 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 (267): * Single equations (assignments): 265 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * 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): 1 system {(1,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003113/0.7438, allocations: 1.199 MB / 0.6691 GB, free: 91.52 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007886/0.7445, allocations: 252.2 kB / 0.6693 GB, free: 91.38 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004522/0.7491, allocations: 2.533 MB / 0.6718 GB, free: 90.2 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.079e-05/0.7491, allocations: 18.59 kB / 0.6718 GB, free: 90.2 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.153e-05/0.7491, allocations: 7.812 kB / 0.6718 GB, free: 90.2 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.851e-05/0.7491, allocations: 11.38 kB / 0.6718 GB, free: 90.2 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01046/0.7596, allocations: 5.91 MB / 0.6776 GB, free: 87.53 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.995e-06/0.7596, allocations: 0 / 0.6776 GB, free: 87.53 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001255/0.7608, allocations: 285.5 kB / 0.6779 GB, free: 87.51 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009009/0.7617, allocations: 360.6 kB / 0.6782 GB, free: 87.39 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000126/0.7619, allocations: 39.19 kB / 0.6782 GB, free: 87.37 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006611/0.7685, allocations: 7.396 MB / 0.6855 GB, free: 81.18 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.266e-06/0.7685, allocations: 3.906 kB / 0.6855 GB, free: 81.18 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005969/0.7745, allocations: 3.677 MB / 0.6891 GB, free: 77.7 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001933/0.7764, allocations: 0.511 MB / 0.6896 GB, free: 77.17 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005356/0.7769, allocations: 34.62 kB / 0.6896 GB, free: 77.14 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001296/0.7782, allocations: 87.92 kB / 0.6897 GB, free: 77.05 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003222/0.7785, allocations: 117.1 kB / 0.6898 GB, free: 76.94 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.392e-05/0.7786, allocations: 43.98 kB / 0.6898 GB, free: 76.9 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002382/0.781, allocations: 1.573 MB / 0.6914 GB, free: 75.31 MB / 462.1 MB Notification: Performance of sort global known variables: time 8e-08/0.781, allocations: 0 / 0.6914 GB, free: 75.31 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003722/0.7847, allocations: 0.6798 MB / 0.692 GB, free: 74.64 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 7 (smee.inertiaRotor.w,smee.stator.core.Phi.re,smee.stator.core.Phi.im,smee.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smee.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smee.excitation.electroMagneticConverter.Phi.re,mechanicalSensor.flange_a.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 {(1,8,100.0%), (1,8,100.0%), (2,15,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.006347/0.7911, allocations: 4.292 MB / 0.6962 GB, free: 70.27 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004095/0.7952, allocations: 2.251 MB / 0.6984 GB, free: 67.99 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 9.388e-06/0.7952, allocations: 0 / 0.6984 GB, free: 67.99 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002268/0.7975, allocations: 1.41 MB / 0.6998 GB, free: 66.55 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003508/0.801, allocations: 0.6252 MB / 0.7004 GB, free: 65.96 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04683/0.8478, allocations: 24.47 MB / 0.7243 GB, free: 40.59 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002512/0.8503, allocations: 2.678 MB / 0.7269 GB, free: 37.89 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002077/0.8524, allocations: 0.5553 MB / 0.7275 GB, free: 37.32 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00187/0.8543, allocations: 1.491 MB / 0.7289 GB, free: 35.83 MB / 462.1 MB Notification: Performance of SimCode: time 1.443e-06/0.8543, allocations: 0 / 0.7289 GB, free: 35.83 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1556/1.01, allocations: 60.87 MB / 0.7884 GB, free: 7.492 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.4/16.41, allocations: 15.94 kB / 0.7884 GB, free: 7.477 MB / 494.1 MB " [Timeout remaining time 643] (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_DOL.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_DOL.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_DOL.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_DOL.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_SynchronousMachines_SMEE_DOL_fmu --startTime=0 --stopTime=2.5 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_SynchronousMachines_SMEE_DOL.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_DOL.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 24.536271543998737] Failed to read output from testmodel.py, exit status != 0: 16.590171521995217 16.610788536 16.326609851 Calling exit ...