Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve3.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.0007342/0.0007342, 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.9015/0.9015, allocations: 177.1 MB / 199.4 MB, free: 5.945 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.0009834/0.0009834, allocations: 152.6 kB / 256 MB, free: 13.35 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.02231/0.02231, allocations: 6.668 MB / 319 MB, free: 26.77 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_VCurve3,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_VCurve3,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve3",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.373e-06/1.373e-06, allocations: 0 / 445.4 MB, free: 37.59 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.617e-05/1.754e-05, allocations: 4.531 kB / 445.4 MB, free: 37.59 MB / 330.7 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_VCurve3): time 0.01317/0.01319, allocations: 22.03 MB / 467.5 MB, free: 15.45 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.01161/0.02479, allocations: 7.71 MB / 475.2 MB, free: 7.715 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002168/0.02696, allocations: 203 kB / 475.4 MB, free: 7.516 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006524/0.03349, allocations: 7.552 MB / 482.9 MB, free: 15.95 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005915/0.0394, allocations: 3.173 MB / 486.1 MB, free: 12.76 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002862/0.04226, allocations: 2.015 MB / 488.1 MB, free: 10.75 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.007593/0.04986, allocations: 9.704 MB / 497.8 MB, free: 1.016 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01175/0.06161, allocations: 11.23 MB / 0.4971 GB, free: 5.652 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006977/0.06858, allocations: 7.133 MB / 0.5041 GB, free: 14.51 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004433/0.07302, allocations: 4.525 MB / 0.5085 GB, free: 9.973 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001424/0.07444, allocations: 1.355 MB / 0.5098 GB, free: 8.617 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00209/0.07653, allocations: 1.741 MB / 0.5115 GB, free: 6.875 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001602/0.07813, allocations: 2.723 MB / 0.5142 GB, free: 4.145 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002776/0.08091, allocations: 3.419 MB / 0.5175 GB, free: 0.7188 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01212/0.09303, allocations: 18.48 MB / 0.5356 GB, free: 14.19 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.182e-06/0.09304, allocations: 4 kB / 0.5356 GB, free: 14.19 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.044e-06/0.09304, allocations: 7.938 kB / 0.5356 GB, free: 14.18 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0003529/0.09339, allocations: 0 / 0.5356 GB, free: 14.18 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.01884/0.1122, allocations: 10.79 MB / 0.5461 GB, free: 3.305 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.518e-05/0.1123, allocations: 12.02 kB / 0.5461 GB, free: 3.293 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001987/0.1143, allocations: 1.264 MB / 0.5474 GB, free: 2.02 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01624/0.1305, allocations: 5.68 MB / 0.5529 GB, free: 12.33 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00934/0.1399, allocations: 5.844 MB / 0.5586 GB, free: 6.414 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003465/0.1402, allocations: 0.5819 MB / 0.5592 GB, free: 5.832 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001822/0.142, allocations: 0.7655 MB / 0.5599 GB, free: 5.066 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3201/0.4621, allocations: 12.98 MB / 0.5726 GB, free: 103.7 MB / 426.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001273/0.4623, allocations: 14.44 kB / 0.5726 GB, free: 103.7 MB / 426.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005531/0.4628, allocations: 317.8 kB / 0.5729 GB, free: 103.5 MB / 426.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002458/0.4631, allocations: 0.4954 MB / 0.5734 GB, free: 103.4 MB / 426.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01243/0.4755, allocations: 12.24 MB / 0.5854 GB, free: 97.12 MB / 426.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03097/0.5065, allocations: 38.01 MB / 0.6225 GB, free: 59.07 MB / 426.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008688/0.5152, allocations: 8.917 MB / 0.6312 GB, free: 51.15 MB / 426.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002383/0.5175, allocations: 2.71 MB / 0.6338 GB, free: 48.45 MB / 426.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002035/0.5178, allocations: 98.97 kB / 0.6339 GB, free: 48.35 MB / 426.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002059/0.5198, allocations: 2.795 MB / 0.6367 GB, free: 45.44 MB / 426.8 MB Notification: Performance of pre-optimization done (n=391): time 4.989e-06/0.5198, allocations: 3.969 kB / 0.6367 GB, free: 45.44 MB / 426.8 MB Notification: Performance of matching and sorting (n=397): time 0.02056/0.5404, allocations: 18.34 MB / 0.6546 GB, free: 27.36 MB / 426.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.169e-05/0.5404, allocations: 355.5 kB / 0.6549 GB, free: 26.93 MB / 426.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002814/0.5433, allocations: 3.647 MB / 0.6585 GB, free: 23.37 MB / 426.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0001409/0.5434, allocations: 89.7 kB / 0.6586 GB, free: 23.28 MB / 426.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.000844/0.5442, allocations: 3.481 MB / 0.662 GB, free: 19.89 MB / 426.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004604/0.5447, allocations: 1.405 MB / 0.6633 GB, free: 18.51 MB / 426.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009111/0.5456, allocations: 1.085 MB / 0.6644 GB, free: 17.41 MB / 426.8 MB Notification: Performance of setup shared object (initialization): time 2.841e-05/0.5456, allocations: 313 kB / 0.6647 GB, free: 17.11 MB / 426.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002157/0.5478, allocations: 2.581 MB / 0.6672 GB, free: 14.51 MB / 426.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00262/0.5504, allocations: 4.717 MB / 0.6718 GB, free: 8.863 MB / 426.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0051/0.5555, allocations: 7.467 MB / 0.6791 GB, free: 0.5234 MB / 426.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.099e-05/0.5555, allocations: 20 kB / 0.6791 GB, free: 0.5039 MB / 426.8 MB Notification: Performance of matching and sorting (n=721) (initialization): time 0.009535/0.5651, allocations: 8.312 MB / 0.6872 GB, free: 8.156 MB / 442.8 MB Notification: Performance of prepare postOptimizeDAE: time 6.023e-05/0.5651, allocations: 61.69 kB / 0.6873 GB, free: 8.09 MB / 442.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.243e-05/0.5652, allocations: 64 kB / 0.6874 GB, free: 8.027 MB / 442.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001667/0.5668, allocations: 0.9923 MB / 0.6883 GB, free: 7.035 MB / 442.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002325/0.5692, allocations: 1.271 MB / 0.6896 GB, free: 5.762 MB / 442.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008574/0.5777, allocations: 8.56 MB / 0.6979 GB, free: 13.09 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002468/0.5802, allocations: 351.5 kB / 0.6983 GB, free: 12.75 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002801/0.5805, allocations: 272 kB / 0.6985 GB, free: 12.48 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.003911/0.5844, allocations: 2.902 MB / 0.7014 GB, free: 9.562 MB / 458.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006027/0.585, allocations: 409.4 kB / 0.7018 GB, free: 9.16 MB / 458.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007048/0.5921, allocations: 6.173 MB / 0.7078 GB, free: 2.926 MB / 458.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.305e-05/0.5921, allocations: 40 kB / 0.7078 GB, free: 2.887 MB / 458.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.152e-05/0.5921, allocations: 12 kB / 0.7078 GB, free: 2.875 MB / 458.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.469e-05/0.5921, allocations: 20.11 kB / 0.7079 GB, free: 2.855 MB / 458.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01643/0.6085, allocations: 13.98 MB / 0.7215 GB, free: 4.805 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.013e-05/0.6086, allocations: 11.94 kB / 0.7215 GB, free: 4.793 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001466/0.61, allocations: 0.6826 MB / 0.7222 GB, free: 4.109 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001396/0.6114, allocations: 0.876 MB / 0.723 GB, free: 3.23 MB / 474.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001527/0.6116, allocations: 91.97 kB / 0.7231 GB, free: 3.141 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007268/0.6188, allocations: 7.499 MB / 0.7305 GB, free: 11.54 MB / 490.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.504e-06/0.6188, allocations: 12.02 kB / 0.7305 GB, free: 11.53 MB / 490.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009269/0.6281, allocations: 8.831 MB / 0.7391 GB, free: 2.555 MB / 490.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001496/0.6296, allocations: 0.8642 MB / 0.7399 GB, free: 1.688 MB / 490.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003213/0.6299, allocations: 79.94 kB / 0.74 GB, free: 1.609 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001024/0.631, allocations: 191.8 kB / 0.7402 GB, free: 1.422 MB / 490.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003642/0.6313, allocations: 291 kB / 0.7405 GB, free: 1.137 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001608/0.6315, allocations: 116 kB / 0.7406 GB, free: 1.023 MB / 490.8 MB Notification: Performance of sorting global known variables: time 0.002713/0.6342, allocations: 2.368 MB / 0.7429 GB, free: 14.66 MB / 0.4949 GB Notification: Performance of sort global known variables: time 1.7e-07/0.6342, allocations: 0 / 0.7429 GB, free: 14.66 MB / 0.4949 GB Notification: Performance of remove unused functions: time 0.003406/0.6376, allocations: 1.453 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.009117/0.6467, allocations: 9.556 MB / 0.7536 GB, free: 3.508 MB / 0.4949 GB Notification: Performance of simCode: created initialization part: time 0.1728/0.8195, allocations: 6.266 MB / 0.7598 GB, free: 181.1 MB / 0.4949 GB Notification: Performance of simCode: created event and clocks part: time 9.057e-06/0.8195, allocations: 3.812 kB / 0.7598 GB, free: 181.1 MB / 0.4949 GB Notification: Performance of simCode: created simulation system equations: time 0.003874/0.8234, allocations: 2.91 MB / 0.7626 GB, free: 180.7 MB / 0.4949 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002804/0.8262, allocations: 0.8215 MB / 0.7634 GB, free: 180.4 MB / 0.4949 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05207/0.8783, allocations: 48.4 MB / 0.8107 GB, free: 139.3 MB / 0.4949 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002678/0.8809, allocations: 4.534 MB / 0.8151 GB, free: 134.7 MB / 0.4949 GB Notification: Performance of simCode: alias equations: time 0.002464/0.8834, allocations: 1.594 MB / 0.8167 GB, free: 133.1 MB / 0.4949 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001923/0.8853, allocations: 2.773 MB / 0.8194 GB, free: 130.4 MB / 0.4949 GB Notification: Performance of SimCode: time 1.283e-06/0.8853, allocations: 0 / 0.8194 GB, free: 130.4 MB / 0.4949 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1065/0.9919, allocations: 115.6 MB / 0.9322 GB, free: 15.49 MB / 0.4949 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.06/11.06, allocations: 4.062 kB / 0.9322 GB, free: 15.49 MB / 0.4949 GB " [Timeout remaining time 649] (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve3.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve3.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve3.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve3.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve3_fmu --startTime=0 --stopTime=200 --stepSize=0.1 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_SynchronousMachines_SMEE_VCurve3.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_VCurve3.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 13.328612799756229] Failed to read output from testmodel.py, exit status != 0: 11.187841027975082 11.370406082 11.275849809 Calling exit ...