Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip4.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.000714/0.000714, 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.8871/0.8871, allocations: 177.1 MB / 199.4 MB, free: 5.918 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.00111/0.00111, allocations: 152.6 kB / 256 MB, free: 13.32 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.02128/0.02128, allocations: 6.668 MB / 319 MB, free: 26.75 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_Slip4,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_Slip4",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMEE_Slip4,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMEE_Slip4",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.926e-06/2.926e-06, allocations: 0 / 445.4 MB, free: 37.45 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.088e-05/3.38e-05, allocations: 10.22 kB / 445.4 MB, free: 37.43 MB / 330.7 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMEE_Slip4): time 0.0133/0.01333, allocations: 22.01 MB / 467.5 MB, free: 15.32 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.01207/0.0254, allocations: 7.772 MB / 475.2 MB, free: 7.523 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00457/0.02997, allocations: 203 kB / 475.4 MB, free: 7.324 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.007407/0.03738, allocations: 6.032 MB / 481.5 MB, free: 1.281 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006912/0.04429, allocations: 2.835 MB / 484.3 MB, free: 14.43 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004002/0.04829, allocations: 1.614 MB / 485.9 MB, free: 12.82 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.008761/0.05705, allocations: 7.63 MB / 493.5 MB, free: 5.164 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01173/0.06878, allocations: 9.015 MB / 0.4908 GB, free: 12.02 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00933/0.07811, allocations: 5.659 MB / 0.4963 GB, free: 6.352 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006127/0.08423, allocations: 3.613 MB / 0.4998 GB, free: 2.73 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002765/0.087, allocations: 1.066 MB / 0.5009 GB, free: 1.664 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004298/0.0913, allocations: 1.46 MB / 0.5023 GB, free: 208 kB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002684/0.09398, allocations: 2.189 MB / 0.5044 GB, free: 14.01 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.005014/0.099, allocations: 2.756 MB / 0.5071 GB, free: 11.25 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01246/0.1115, allocations: 14.71 MB / 0.5215 GB, free: 12.5 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.205e-06/0.1115, allocations: 0 / 0.5215 GB, free: 12.5 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.043e-06/0.1115, allocations: 0 / 0.5215 GB, free: 12.5 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.000374/0.1118, allocations: 0 / 0.5215 GB, free: 12.5 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1800 * Number of variables: 1800 Notification: Performance of Generate backend data structure: time 0.02023/0.1321, allocations: 8.818 MB / 0.5301 GB, free: 3.602 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.943e-05/0.1321, allocations: 12.03 kB / 0.5301 GB, free: 3.59 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003207/0.1353, allocations: 1.041 MB / 0.5311 GB, free: 2.539 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01351/0.1488, allocations: 4.425 MB / 0.5355 GB, free: 14.11 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008361/0.1572, allocations: 4.629 MB / 0.54 GB, free: 9.418 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005264/0.1577, allocations: 485.1 kB / 0.5404 GB, free: 8.941 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002378/0.1601, allocations: 0.6288 MB / 0.541 GB, free: 8.312 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02007/0.1802, allocations: 10.49 MB / 0.5513 GB, free: 13.73 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002208/0.1804, allocations: 11.94 kB / 0.5513 GB, free: 13.71 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00169/0.1821, allocations: 268 kB / 0.5516 GB, free: 13.45 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003242/0.1824, allocations: 417.7 kB / 0.552 GB, free: 13.04 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01761/0.2, allocations: 9.857 MB / 0.5616 GB, free: 3.168 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2/0.4, allocations: 30.79 MB / 0.5916 GB, free: 93.9 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007521/0.4075, allocations: 6.699 MB / 0.5982 GB, free: 88.08 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002372/0.4099, allocations: 2.105 MB / 0.6002 GB, free: 85.98 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002297/0.4101, allocations: 90.08 kB / 0.6003 GB, free: 85.89 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.318e-05/0.4101, allocations: 56.89 kB / 0.6004 GB, free: 85.82 MB / 426.7 MB Notification: Performance of pre-optimization done (n=295): time 5.761e-06/0.4101, allocations: 0 / 0.6004 GB, free: 85.82 MB / 426.7 MB Notification: Performance of matching and sorting (n=301): time 0.01362/0.4238, allocations: 10.82 MB / 0.611 GB, free: 75.22 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.859e-05/0.4238, allocations: 81.78 kB / 0.611 GB, free: 75.12 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003356/0.4271, allocations: 3.133 MB / 0.6141 GB, free: 72.05 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003069/0.4275, allocations: 73.7 kB / 0.6142 GB, free: 71.98 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009062/0.4284, allocations: 2.96 MB / 0.6171 GB, free: 69.35 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006352/0.429, allocations: 1.071 MB / 0.6181 GB, free: 68.3 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009105/0.4299, allocations: 0.9099 MB / 0.619 GB, free: 67.38 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 2.886e-05/0.4299, allocations: 309.1 kB / 0.6193 GB, free: 67.07 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001873/0.4318, allocations: 2.024 MB / 0.6213 GB, free: 65.04 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002203/0.434, allocations: 3.759 MB / 0.6249 GB, free: 60.48 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004354/0.4384, allocations: 6.059 MB / 0.6308 GB, free: 53.62 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.866e-05/0.4384, allocations: 16 kB / 0.6309 GB, free: 53.61 MB / 426.7 MB Notification: Performance of matching and sorting (n=595) (initialization): time 0.006527/0.4449, allocations: 6.647 MB / 0.6374 GB, free: 46.92 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.886e-05/0.445, allocations: 30.81 kB / 0.6374 GB, free: 46.89 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.329e-05/0.445, allocations: 56 kB / 0.6374 GB, free: 46.84 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001017/0.446, allocations: 0.6665 MB / 0.6381 GB, free: 46.17 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001923/0.448, allocations: 1.072 MB / 0.6391 GB, free: 45.1 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004777/0.4527, allocations: 6.024 MB / 0.645 GB, free: 38.96 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002754/0.4555, allocations: 279.6 kB / 0.6453 GB, free: 38.68 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005305/0.456, allocations: 231.9 kB / 0.6455 GB, free: 38.46 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 251 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (560): * Single equations (assignments): 559 * Array equations: 0 * Algorithm blocks: 0 * 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 {(8,28,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002962/0.459, allocations: 2.312 MB / 0.6478 GB, free: 36.13 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000586/0.4596, allocations: 349.8 kB / 0.6481 GB, free: 35.79 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004722/0.4643, allocations: 4.61 MB / 0.6526 GB, free: 31.12 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.353e-05/0.4643, allocations: 35.98 kB / 0.6526 GB, free: 31.09 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.177e-06/0.4643, allocations: 12 kB / 0.6526 GB, free: 31.08 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.595e-05/0.4643, allocations: 16.92 kB / 0.6527 GB, free: 31.06 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0117/0.476, allocations: 10.57 MB / 0.663 GB, free: 20.4 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-05/0.476, allocations: 12.09 kB / 0.663 GB, free: 20.39 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001079/0.4771, allocations: 0.5305 MB / 0.6635 GB, free: 19.86 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009314/0.4781, allocations: 0.5615 MB / 0.6641 GB, free: 19.29 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001396/0.4782, allocations: 71.97 kB / 0.6641 GB, free: 19.22 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004197/0.4824, allocations: 5.263 MB / 0.6693 GB, free: 13.85 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.878e-06/0.4824, allocations: 8 kB / 0.6693 GB, free: 13.84 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006202/0.4886, allocations: 6.589 MB / 0.6757 GB, free: 7.09 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001505/0.4901, allocations: 0.6577 MB / 0.6763 GB, free: 6.43 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005266/0.4906, allocations: 63.98 kB / 0.6764 GB, free: 6.367 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009962/0.4916, allocations: 143.9 kB / 0.6765 GB, free: 6.227 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002711/0.4919, allocations: 225.8 kB / 0.6768 GB, free: 6.004 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001044/0.492, allocations: 91.97 kB / 0.6769 GB, free: 5.914 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001923/0.4939, allocations: 2.017 MB / 0.6788 GB, free: 3.895 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.4939, allocations: 3.938 kB / 0.6788 GB, free: 3.891 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.003343/0.4973, allocations: 1.176 MB / 0.68 GB, free: 2.715 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 21 * Number of states: 2 (smee.short.port_p.reference.gamma,mechanicalPowerSensor.relSpeedSensor.phi_rel) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (291): * Single equations (assignments): 290 * Array equations: 0 * Algorithm blocks: 0 * 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 {(8,26,62.5%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.007333/0.5046, allocations: 7.282 MB / 0.6871 GB, free: 11.27 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.0068/0.5114, allocations: 4.823 MB / 0.6918 GB, free: 6.414 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 9.568e-06/0.5114, allocations: 0 / 0.6918 GB, free: 6.414 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003146/0.5146, allocations: 2.111 MB / 0.6939 GB, free: 4.289 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002698/0.5173, allocations: 0.6428 MB / 0.6945 GB, free: 3.66 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05961/0.5769, allocations: 39.08 MB / 0.7326 GB, free: 10.55 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004493/0.5814, allocations: 3.652 MB / 0.7362 GB, free: 6.855 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.002712/0.5841, allocations: 1.322 MB / 0.7375 GB, free: 5.531 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002625/0.5867, allocations: 2.269 MB / 0.7397 GB, free: 3.262 MB / 490.7 MB Notification: Performance of SimCode: time 1.483e-06/0.5867, allocations: 0 / 0.7397 GB, free: 3.262 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2379/0.8245, allocations: 91.44 MB / 0.829 GB, free: 88.27 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.15/10.97, allocations: 3.125 kB / 0.829 GB, free: 88.27 MB / 490.7 MB " [Timeout remaining time 649] (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip4.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip4.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip4.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip4.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_SynchronousMachines_SMEE_Slip4_fmu --startTime=0 --stopTime=30 --stepSize=0.001 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_SynchronousMachines_SMEE_Slip4.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMEE_Slip4.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 15.032209215685725] Failed to read output from testmodel.py, exit status != 0: 11.10155517142266 11.108351908 10.995229602 Calling exit ...