Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1.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.0008063/0.0008063, 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.8976/0.8976, allocations: 177.1 MB / 199.4 MB, free: 5.926 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.001031/0.001031, allocations: 152.6 kB / 255.9 MB, free: 13.34 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.02167/0.02167, allocations: 6.66 MB / 319 MB, free: 26.76 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_VCurve1,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_VCurve1,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve1",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.453e-06/1.453e-06, allocations: 0 / 445.4 MB, free: 37.59 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.402e-05/1.547e-05, allocations: 5.094 kB / 445.4 MB, free: 37.59 MB / 330.7 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_VCurve1): time 0.01258/0.01259, allocations: 22 MB / 467.4 MB, free: 15.48 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.01005/0.02264, allocations: 7.714 MB / 475.1 MB, free: 7.742 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002894/0.02554, allocations: 203.1 kB / 475.3 MB, free: 7.543 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006519/0.03205, allocations: 7.553 MB / 482.9 MB, free: 15.97 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005408/0.03746, allocations: 3.166 MB / 486.1 MB, free: 12.79 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002864/0.04033, allocations: 2.023 MB / 488.1 MB, free: 10.78 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.007311/0.04764, allocations: 9.692 MB / 497.8 MB, free: 1.051 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009207/0.05684, allocations: 11.23 MB / 0.4971 GB, free: 5.684 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005486/0.06233, allocations: 7.133 MB / 0.504 GB, free: 14.54 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003394/0.06573, allocations: 4.521 MB / 0.5085 GB, free: 10.01 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009561/0.06668, allocations: 1.352 MB / 0.5098 GB, free: 8.656 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001698/0.06838, allocations: 1.745 MB / 0.5115 GB, free: 6.91 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00128/0.06966, allocations: 2.727 MB / 0.5141 GB, free: 4.176 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002394/0.07205, allocations: 3.415 MB / 0.5175 GB, free: 0.7539 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0116/0.08365, allocations: 18.49 MB / 0.5355 GB, free: 14.22 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.45e-06/0.08366, allocations: 0 / 0.5355 GB, free: 14.22 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.014e-06/0.08366, allocations: 0 / 0.5355 GB, free: 14.22 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0003554/0.08402, allocations: 0 / 0.5355 GB, free: 14.22 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.01862/0.1026, allocations: 10.8 MB / 0.5461 GB, free: 3.332 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.823e-05/0.1027, allocations: 12.02 kB / 0.5461 GB, free: 3.32 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00156/0.1042, allocations: 1.264 MB / 0.5473 GB, free: 2.047 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01517/0.1194, allocations: 5.676 MB / 0.5529 GB, free: 12.36 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00929/0.1287, allocations: 5.836 MB / 0.5586 GB, free: 6.453 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002859/0.129, allocations: 0.578 MB / 0.5591 GB, free: 5.875 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001363/0.1304, allocations: 0.7694 MB / 0.5599 GB, free: 5.105 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2988/0.4292, allocations: 12.99 MB / 0.5726 GB, free: 103.7 MB / 426.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001116/0.4293, allocations: 6.938 kB / 0.5726 GB, free: 103.7 MB / 426.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005166/0.4298, allocations: 328 kB / 0.5729 GB, free: 103.5 MB / 426.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002723/0.4301, allocations: 0.4895 MB / 0.5734 GB, free: 103.4 MB / 426.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01103/0.4411, allocations: 12.24 MB / 0.5853 GB, free: 97.14 MB / 426.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02987/0.471, allocations: 38.01 MB / 0.6224 GB, free: 59.09 MB / 426.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008454/0.4794, allocations: 8.913 MB / 0.6311 GB, free: 51.18 MB / 426.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002121/0.4816, allocations: 2.713 MB / 0.6338 GB, free: 48.47 MB / 426.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001738/0.4817, allocations: 103 kB / 0.6339 GB, free: 48.37 MB / 426.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001955/0.4837, allocations: 2.791 MB / 0.6366 GB, free: 45.46 MB / 426.8 MB Notification: Performance of pre-optimization done (n=391): time 5.049e-06/0.4837, allocations: 3.984 kB / 0.6366 GB, free: 45.46 MB / 426.8 MB Notification: Performance of matching and sorting (n=397): time 0.01925/0.5029, allocations: 18.34 MB / 0.6545 GB, free: 27.38 MB / 426.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.538e-05/0.503, allocations: 359.5 kB / 0.6549 GB, free: 26.96 MB / 426.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002814/0.5058, allocations: 3.652 MB / 0.6584 GB, free: 23.39 MB / 426.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0001432/0.506, allocations: 89.7 kB / 0.6585 GB, free: 23.3 MB / 426.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008764/0.5068, allocations: 3.485 MB / 0.6619 GB, free: 19.91 MB / 426.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005005/0.5073, allocations: 1.396 MB / 0.6633 GB, free: 18.54 MB / 426.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009075/0.5082, allocations: 1.089 MB / 0.6643 GB, free: 17.44 MB / 426.8 MB Notification: Performance of setup shared object (initialization): time 2.554e-05/0.5083, allocations: 309.1 kB / 0.6646 GB, free: 17.13 MB / 426.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002019/0.5103, allocations: 2.581 MB / 0.6672 GB, free: 14.54 MB / 426.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002734/0.513, allocations: 4.717 MB / 0.6718 GB, free: 8.891 MB / 426.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004957/0.518, allocations: 7.467 MB / 0.6791 GB, free: 0.5508 MB / 426.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-05/0.518, allocations: 16 kB / 0.6791 GB, free: 0.5352 MB / 426.8 MB Notification: Performance of matching and sorting (n=721) (initialization): time 0.009026/0.527, allocations: 8.323 MB / 0.6872 GB, free: 8.18 MB / 442.8 MB Notification: Performance of prepare postOptimizeDAE: time 5.188e-05/0.5271, allocations: 57.7 kB / 0.6873 GB, free: 8.117 MB / 442.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.635e-05/0.5271, allocations: 64 kB / 0.6873 GB, free: 8.055 MB / 442.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001547/0.5287, allocations: 0.9928 MB / 0.6883 GB, free: 7.059 MB / 442.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00219/0.5309, allocations: 1.267 MB / 0.6895 GB, free: 5.789 MB / 442.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008046/0.5389, allocations: 8.566 MB / 0.6979 GB, free: 13.12 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002682/0.5416, allocations: 351.5 kB / 0.6982 GB, free: 12.77 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002934/0.5419, allocations: 268 kB / 0.6985 GB, free: 12.51 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.003743/0.5456, allocations: 2.902 MB / 0.7013 GB, free: 9.59 MB / 458.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005111/0.5461, allocations: 417.4 kB / 0.7017 GB, free: 9.18 MB / 458.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006386/0.5525, allocations: 6.169 MB / 0.7077 GB, free: 2.949 MB / 458.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.921e-05/0.5525, allocations: 40.19 kB / 0.7078 GB, free: 2.91 MB / 458.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.065e-05/0.5526, allocations: 12 kB / 0.7078 GB, free: 2.898 MB / 458.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.258e-05/0.5526, allocations: 23.86 kB / 0.7078 GB, free: 2.875 MB / 458.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01427/0.5668, allocations: 13.98 MB / 0.7215 GB, free: 4.824 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.807e-06/0.5669, allocations: 4 kB / 0.7215 GB, free: 4.82 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00151/0.5684, allocations: 0.6826 MB / 0.7221 GB, free: 4.137 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001319/0.5697, allocations: 0.8795 MB / 0.723 GB, free: 3.254 MB / 474.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001507/0.5698, allocations: 91.97 kB / 0.7231 GB, free: 3.164 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006773/0.5766, allocations: 7.494 MB / 0.7304 GB, free: 11.57 MB / 490.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.418e-06/0.5766, allocations: 8.031 kB / 0.7304 GB, free: 11.56 MB / 490.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008478/0.5851, allocations: 8.839 MB / 0.739 GB, free: 2.582 MB / 490.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001365/0.5865, allocations: 0.8642 MB / 0.7399 GB, free: 1.715 MB / 490.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003132/0.5868, allocations: 75.94 kB / 0.74 GB, free: 1.641 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009858/0.5878, allocations: 195.9 kB / 0.7401 GB, free: 1.449 MB / 490.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003225/0.5881, allocations: 295 kB / 0.7404 GB, free: 1.16 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000149/0.5882, allocations: 120 kB / 0.7405 GB, free: 1.043 MB / 490.8 MB Notification: Performance of sorting global known variables: time 0.002492/0.5907, allocations: 2.363 MB / 0.7428 GB, free: 14.69 MB / 0.4949 GB Notification: Performance of sort global known variables: time 1.8e-07/0.5907, allocations: 0 / 0.7428 GB, free: 14.69 MB / 0.4949 GB Notification: Performance of remove unused functions: time 0.003277/0.594, allocations: 1.453 MB / 0.7443 GB, free: 13.23 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.008686/0.6027, allocations: 9.54 MB / 0.7536 GB, free: 3.539 MB / 0.4949 GB Notification: Performance of simCode: created initialization part: time 0.1482/0.7509, allocations: 6.272 MB / 0.7597 GB, free: 180.9 MB / 0.4949 GB Notification: Performance of simCode: created event and clocks part: time 7.995e-06/0.7509, allocations: 0 / 0.7597 GB, free: 180.9 MB / 0.4949 GB Notification: Performance of simCode: created simulation system equations: time 0.003569/0.7545, allocations: 2.92 MB / 0.7626 GB, free: 180.5 MB / 0.4949 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00261/0.7571, allocations: 0.8165 MB / 0.7634 GB, free: 180.2 MB / 0.4949 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04772/0.8048, allocations: 48.39 MB / 0.8106 GB, free: 139.1 MB / 0.4949 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002653/0.8074, allocations: 4.529 MB / 0.815 GB, free: 134.6 MB / 0.4949 GB Notification: Performance of simCode: alias equations: time 0.002512/0.81, allocations: 1.599 MB / 0.8166 GB, free: 133 MB / 0.4949 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001892/0.8118, allocations: 2.773 MB / 0.8193 GB, free: 130.2 MB / 0.4949 GB Notification: Performance of SimCode: time 1.613e-06/0.8118, allocations: 0 / 0.8193 GB, free: 130.2 MB / 0.4949 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1061/0.918, allocations: 115.6 MB / 0.9322 GB, free: 15.32 MB / 0.4949 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.77/11.69, allocations: 0 / 0.9322 GB, free: 15.32 MB / 0.4949 GB " [Timeout remaining time 648] (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve1_fmu --startTime=0 --stopTime=200 --stepSize=0.1 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve1.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve1.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.0437321793288] Failed to read output from testmodel.py, exit status != 0: 11.8254813561216 11.972432986 11.887215219 Calling exit ...