Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve4.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.0007687/0.0007687, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 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 0.8901/0.8901, allocations: 177.1 MB / 199.4 MB, free: 5.953 MB / 186.7 MB " [Timeout remaining time 179] 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.001044/0.001044, allocations: 160.6 kB / 256 MB, free: 13.36 MB / 250.7 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.02229/0.02229, allocations: 6.663 MB / 319 MB, free: 26.78 MB / 266.7 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_VCurve4,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve4",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_VCurve4,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve4",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.943e-06/1.943e-06, allocations: 0 / 445.4 MB, free: 37.59 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.871e-05/2.066e-05, allocations: 2.281 kB / 445.4 MB, free: 37.59 MB / 330.7 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_VCurve4): time 0.01347/0.01349, allocations: 22.03 MB / 467.5 MB, free: 15.45 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.01149/0.02498, allocations: 7.706 MB / 475.2 MB, free: 7.723 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003756/0.02874, allocations: 207 kB / 475.4 MB, free: 7.52 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006865/0.0356, allocations: 7.548 MB / 482.9 MB, free: 15.95 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006034/0.04164, allocations: 3.18 MB / 486.1 MB, free: 12.76 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00294/0.04458, allocations: 2.013 MB / 488.1 MB, free: 10.75 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.008277/0.05286, allocations: 9.704 MB / 497.8 MB, free: 1.016 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01231/0.06516, allocations: 11.22 MB / 0.4971 GB, free: 5.656 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007448/0.07261, allocations: 7.129 MB / 0.5041 GB, free: 14.52 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005196/0.07781, allocations: 4.521 MB / 0.5085 GB, free: 9.984 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001956/0.07976, allocations: 1.352 MB / 0.5098 GB, free: 8.633 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002585/0.08235, allocations: 1.749 MB / 0.5115 GB, free: 6.883 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001464/0.08381, allocations: 2.727 MB / 0.5142 GB, free: 4.148 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003278/0.08709, allocations: 3.419 MB / 0.5175 GB, free: 0.7227 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01372/0.1008, allocations: 18.47 MB / 0.5356 GB, free: 14.2 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.154e-06/0.1008, allocations: 4 kB / 0.5356 GB, free: 14.2 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.356e-06/0.1008, allocations: 3.984 kB / 0.5356 GB, free: 14.19 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0003457/0.1012, allocations: 0 / 0.5356 GB, free: 14.19 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2183 * Number of variables: 2183 Notification: Performance of Generate backend data structure: time 0.01912/0.1203, allocations: 10.79 MB / 0.5461 GB, free: 3.312 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.953e-05/0.1203, allocations: 12.03 kB / 0.5461 GB, free: 3.301 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001605/0.122, allocations: 1.268 MB / 0.5474 GB, free: 2.023 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01583/0.1378, allocations: 5.672 MB / 0.5529 GB, free: 12.34 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00934/0.1471, allocations: 5.844 MB / 0.5586 GB, free: 6.426 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003368/0.1475, allocations: 0.582 MB / 0.5592 GB, free: 5.844 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001616/0.1491, allocations: 0.7732 MB / 0.5599 GB, free: 5.07 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2987/0.4477, allocations: 12.97 MB / 0.5726 GB, free: 103.7 MB / 426.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001224/0.4479, allocations: 18.38 kB / 0.5726 GB, free: 103.7 MB / 426.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000557/0.4484, allocations: 322.2 kB / 0.5729 GB, free: 103.5 MB / 426.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002915/0.4487, allocations: 0.4936 MB / 0.5734 GB, free: 103.4 MB / 426.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01165/0.4604, allocations: 12.24 MB / 0.5854 GB, free: 97.12 MB / 426.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03156/0.4919, allocations: 38.01 MB / 0.6225 GB, free: 59.07 MB / 426.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00848/0.5004, allocations: 8.916 MB / 0.6312 GB, free: 51.16 MB / 426.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002212/0.5026, allocations: 2.717 MB / 0.6338 GB, free: 48.45 MB / 426.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000175/0.5028, allocations: 98.97 kB / 0.6339 GB, free: 48.36 MB / 426.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002018/0.5048, allocations: 2.783 MB / 0.6367 GB, free: 45.45 MB / 426.8 MB Notification: Performance of pre-optimization done (n=391): time 5.461e-06/0.5048, allocations: 0 / 0.6367 GB, free: 45.45 MB / 426.8 MB Notification: Performance of matching and sorting (n=397): time 0.0205/0.5253, allocations: 18.35 MB / 0.6546 GB, free: 27.37 MB / 426.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.684e-05/0.5254, allocations: 363.5 kB / 0.6549 GB, free: 26.94 MB / 426.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002978/0.5284, allocations: 3.645 MB / 0.6585 GB, free: 23.38 MB / 426.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0001456/0.5285, allocations: 85.7 kB / 0.6586 GB, free: 23.29 MB / 426.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008735/0.5294, allocations: 3.491 MB / 0.662 GB, free: 19.9 MB / 426.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004841/0.5299, allocations: 1.4 MB / 0.6633 GB, free: 18.52 MB / 426.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009435/0.5308, allocations: 1.085 MB / 0.6644 GB, free: 17.43 MB / 426.8 MB Notification: Performance of setup shared object (initialization): time 2.754e-05/0.5308, allocations: 305.1 kB / 0.6647 GB, free: 17.12 MB / 426.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002097/0.5329, allocations: 2.585 MB / 0.6672 GB, free: 14.53 MB / 426.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002614/0.5355, allocations: 4.721 MB / 0.6718 GB, free: 8.875 MB / 426.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005132/0.5407, allocations: 7.471 MB / 0.6791 GB, free: 0.5312 MB / 426.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.978e-05/0.5407, allocations: 16 kB / 0.6791 GB, free: 0.5156 MB / 426.8 MB Notification: Performance of matching and sorting (n=721) (initialization): time 0.009318/0.55, allocations: 8.315 MB / 0.6872 GB, free: 8.164 MB / 442.8 MB Notification: Performance of prepare postOptimizeDAE: time 5.662e-05/0.5501, allocations: 57.7 kB / 0.6873 GB, free: 8.102 MB / 442.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.927e-05/0.5501, allocations: 64 kB / 0.6874 GB, free: 8.039 MB / 442.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001632/0.5518, allocations: 1.004 MB / 0.6883 GB, free: 7.035 MB / 442.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002587/0.5544, allocations: 1.264 MB / 0.6896 GB, free: 5.77 MB / 442.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00824/0.5626, allocations: 8.56 MB / 0.6979 GB, free: 13.1 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002327/0.5649, allocations: 347.5 kB / 0.6983 GB, free: 12.76 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002741/0.5652, allocations: 271.9 kB / 0.6985 GB, free: 12.5 MB / 458.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 275 * Number of states: 0 () * Number of discrete variables: 1 ($whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (664): * Single equations (assignments): 662 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(10,48,52.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003493/0.5687, allocations: 2.906 MB / 0.7014 GB, free: 9.57 MB / 458.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005105/0.5692, allocations: 413.4 kB / 0.7018 GB, free: 9.164 MB / 458.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006666/0.5759, allocations: 6.173 MB / 0.7078 GB, free: 2.93 MB / 458.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.098e-05/0.5759, allocations: 40 kB / 0.7078 GB, free: 2.891 MB / 458.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.143e-05/0.5759, allocations: 8 kB / 0.7078 GB, free: 2.883 MB / 458.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.373e-05/0.5759, allocations: 24.11 kB / 0.7079 GB, free: 2.859 MB / 458.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01607/0.592, allocations: 13.98 MB / 0.7215 GB, free: 4.812 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.047e-05/0.592, allocations: 7.938 kB / 0.7215 GB, free: 4.805 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00143/0.5934, allocations: 0.6826 MB / 0.7222 GB, free: 4.121 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001397/0.5948, allocations: 0.8758 MB / 0.723 GB, free: 3.242 MB / 474.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001554/0.595, allocations: 91.95 kB / 0.7231 GB, free: 3.152 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007114/0.6021, allocations: 7.503 MB / 0.7305 GB, free: 11.54 MB / 490.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.506e-06/0.6021, allocations: 4 kB / 0.7305 GB, free: 11.54 MB / 490.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009138/0.6112, allocations: 8.835 MB / 0.7391 GB, free: 2.566 MB / 490.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001517/0.6128, allocations: 0.8604 MB / 0.7399 GB, free: 1.703 MB / 490.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003299/0.6131, allocations: 83.92 kB / 0.74 GB, free: 1.621 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001038/0.6141, allocations: 195.8 kB / 0.7402 GB, free: 1.43 MB / 490.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003536/0.6145, allocations: 291 kB / 0.7405 GB, free: 1.145 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001593/0.6146, allocations: 116 kB / 0.7406 GB, free: 1.031 MB / 490.8 MB Notification: Performance of sorting global known variables: time 0.002867/0.6175, allocations: 2.363 MB / 0.7429 GB, free: 14.68 MB / 0.4949 GB Notification: Performance of sort global known variables: time 3.91e-07/0.6175, allocations: 0 / 0.7429 GB, free: 14.68 MB / 0.4949 GB Notification: Performance of remove unused functions: time 0.003772/0.6213, allocations: 1.461 MB / 0.7443 GB, free: 13.21 MB / 0.4949 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 3 (smee.inertiaRotor.w,smee.rotorCage.port_p.reference.gamma,constantTorque.phi) * Number of discrete variables: 1 ($whenCondition1) * Number of discrete states: 1 ($whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (371): * Single equations (assignments): 369 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(10,46,50.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.009571/0.6308, allocations: 9.54 MB / 0.7536 GB, free: 3.523 MB / 0.4949 GB Notification: Performance of simCode: created initialization part: time 0.1674/0.7982, allocations: 6.274 MB / 0.7598 GB, free: 180.8 MB / 0.4949 GB Notification: Performance of simCode: created event and clocks part: time 7.945e-06/0.7982, allocations: 4.469 kB / 0.7598 GB, free: 180.8 MB / 0.4949 GB Notification: Performance of simCode: created simulation system equations: time 0.003693/0.8019, allocations: 2.915 MB / 0.7626 GB, free: 180.4 MB / 0.4949 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002849/0.8048, allocations: 0.8234 MB / 0.7634 GB, free: 180.1 MB / 0.4949 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0518/0.8566, allocations: 48.4 MB / 0.8107 GB, free: 138.8 MB / 0.4949 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003201/0.8598, allocations: 4.531 MB / 0.8151 GB, free: 134.3 MB / 0.4949 GB Notification: Performance of simCode: alias equations: time 0.002556/0.8623, allocations: 1.591 MB / 0.8167 GB, free: 132.7 MB / 0.4949 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00209/0.8644, allocations: 2.781 MB / 0.8194 GB, free: 129.9 MB / 0.4949 GB Notification: Performance of SimCode: time 1.333e-06/0.8644, allocations: 0 / 0.8194 GB, free: 129.9 MB / 0.4949 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1077/0.9721, allocations: 115.6 MB / 0.9322 GB, free: 15.08 MB / 0.4949 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.11/12.09, allocations: 0 / 0.9322 GB, free: 15.08 MB / 0.4949 GB " [Timeout remaining time 648] (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve4.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve4.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve4.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve4.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve4_fmu --startTime=0 --stopTime=200 --stepSize=0.1 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve4.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve4.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 14.31112669967115] Failed to read output from testmodel.py, exit status != 0: 12.217698968946934 12.37552091 12.273144896 Calling exit ...