Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource.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.00124/0.00124, allocations: 81.92 kB / 19.87 MB, free: 4.621 MB / 18.57 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.9822/0.9822, allocations: 177.2 MB / 200.3 MB, free: 5.703 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.001356/0.001356, allocations: 156.6 kB / 256.9 MB, free: 12.98 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.04401/0.04401, allocations: 6.661 MB / 320.1 MB, free: 11.44 MB / 298.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: translateModel(HanserModelica.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource") translateModel(HanserModelica.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.643e-06/1.643e-06, allocations: 0 / 392.1 MB, free: 3.332 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.515e-05/1.679e-05, allocations: 6.312 kB / 392.1 MB, free: 3.324 MB / 362.7 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMPM_CurrentSource): time 0.02462/0.02463, allocations: 26.96 MB / 419.1 MB, free: 8.242 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.0154/0.04004, allocations: 8.419 MB / 427.5 MB, free: 15.8 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002861/0.0429, allocations: 250.8 kB / 427.7 MB, free: 15.55 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00816/0.05106, allocations: 8.427 MB / 436.2 MB, free: 7.086 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007758/0.05881, allocations: 2.917 MB / 439.1 MB, free: 4.152 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004788/0.0636, allocations: 1.884 MB / 441 MB, free: 2.266 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.1517/0.2153, allocations: 10.45 MB / 451.4 MB, free: 116.8 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02272/0.238, allocations: 13.92 MB / 465.3 MB, free: 112.7 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01509/0.2531, allocations: 8.267 MB / 473.6 MB, free: 108.8 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00891/0.262, allocations: 5.927 MB / 479.5 MB, free: 106.9 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.004418/0.2665, allocations: 1.538 MB / 481.1 MB, free: 106.5 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007191/0.2737, allocations: 1.898 MB / 483 MB, free: 104.7 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004439/0.2781, allocations: 3.088 MB / 486.1 MB, free: 102.2 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.009849/0.2879, allocations: 3.966 MB / 490 MB, free: 98.7 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01505/0.303, allocations: 9.9 MB / 499.9 MB, free: 90.15 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.64e-06/0.303, allocations: 0 / 499.9 MB, free: 90.15 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.252e-06/0.303, allocations: 1.156 kB / 499.9 MB, free: 90.15 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0004526/0.3035, allocations: 0 / 499.9 MB, free: 90.15 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: 2602 * Number of variables: 2602 Notification: Performance of Generate backend data structure: time 0.0207/0.3242, allocations: 12.27 MB / 0.5002 GB, free: 78.39 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.674e-05/0.3242, allocations: 8.031 kB / 0.5002 GB, free: 78.39 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01636/0.3406, allocations: 5.423 MB / 0.5055 GB, free: 73.04 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007502/0.3481, allocations: 5.666 MB / 0.511 GB, free: 67.57 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003951/0.3485, allocations: 0.7066 MB / 0.5117 GB, free: 66.87 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002271/0.3507, allocations: 0.9216 MB / 0.5126 GB, free: 65.96 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01764/0.3684, allocations: 7.5 MB / 0.5199 GB, free: 58.77 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002728/0.3687, allocations: 14.95 kB / 0.52 GB, free: 58.75 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009799/0.3696, allocations: 390 kB / 0.5203 GB, free: 58.38 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000311/0.3699, allocations: 0.5155 MB / 0.5208 GB, free: 57.86 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009357/0.3793, allocations: 3.458 MB / 0.5242 GB, free: 54.37 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04697/0.4263, allocations: 38.2 MB / 0.5615 GB, free: 17.17 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005593/0.4319, allocations: 6.222 MB / 0.5676 GB, free: 12.26 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001278/0.4331, allocations: 1.075 MB / 0.5686 GB, free: 11.21 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002345/0.4334, allocations: 146.8 kB / 0.5688 GB, free: 11.07 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.659e-05/0.4334, allocations: 79.78 kB / 0.5688 GB, free: 10.98 MB / 410.7 MB Notification: Performance of pre-optimization done (n=372): time 5.391e-06/0.4334, allocations: 3.938 kB / 0.5689 GB, free: 10.98 MB / 410.7 MB Notification: Performance of matching and sorting (n=380): time 0.01247/0.4459, allocations: 7.239 MB / 0.5759 GB, free: 3.77 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.389e-05/0.4459, allocations: 90.39 kB / 0.576 GB, free: 3.668 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002872/0.4488, allocations: 3.412 MB / 0.5793 GB, free: 0.7539 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001592/0.449, allocations: 93.7 kB / 0.5794 GB, free: 0.6562 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.2554/0.7044, allocations: 4.494 MB / 0.5838 GB, free: 85.48 MB / 410.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001313/0.7057, allocations: 1.414 MB / 0.5852 GB, free: 84.77 MB / 410.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001394/0.7071, allocations: 1.322 MB / 0.5865 GB, free: 84.64 MB / 410.8 MB Notification: Performance of setup shared object (initialization): time 4.682e-05/0.7071, allocations: 484.2 kB / 0.587 GB, free: 84.18 MB / 410.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007673/0.7079, allocations: 0.6407 MB / 0.5876 GB, free: 84.16 MB / 410.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001854/0.7097, allocations: 4.401 MB / 0.5919 GB, free: 79.62 MB / 410.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003399/0.7131, allocations: 5.723 MB / 0.5975 GB, free: 75.13 MB / 410.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.065e-05/0.7132, allocations: 22.38 kB / 0.5975 GB, free: 75.13 MB / 410.8 MB Notification: Performance of matching and sorting (n=768) (initialization): time 0.005361/0.7185, allocations: 4.818 MB / 0.6022 GB, free: 74.68 MB / 410.8 MB Notification: Performance of prepare postOptimizeDAE: time 4.309e-05/0.7186, allocations: 43.38 kB / 0.6022 GB, free: 74.68 MB / 410.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.244e-05/0.7186, allocations: 82.5 kB / 0.6023 GB, free: 74.68 MB / 410.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001613/0.7203, allocations: 0.7903 MB / 0.6031 GB, free: 74.62 MB / 410.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002516/0.7228, allocations: 1.28 MB / 0.6043 GB, free: 74.62 MB / 410.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004826/0.7276, allocations: 6.569 MB / 0.6107 GB, free: 70.79 MB / 410.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002552/0.7301, allocations: 242.3 kB / 0.611 GB, free: 70.76 MB / 410.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003509/0.7305, allocations: 267 kB / 0.6112 GB, free: 70.76 MB / 410.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 376 * 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 (720): * Single equations (assignments): 718 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (8,40,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001846/0.7323, allocations: 0.5584 MB / 0.6118 GB, free: 70.6 MB / 410.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007243/0.7331, allocations: 0.5223 MB / 0.6123 GB, free: 70.38 MB / 410.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003687/0.7368, allocations: 2.97 MB / 0.6152 GB, free: 70.12 MB / 410.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.63e-05/0.7368, allocations: 39 kB / 0.6152 GB, free: 70.12 MB / 410.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.077e-06/0.7368, allocations: 18.62 kB / 0.6152 GB, free: 70.11 MB / 410.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.051e-05/0.7368, allocations: 18.84 kB / 0.6153 GB, free: 70.11 MB / 410.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01213/0.7489, allocations: 8.101 MB / 0.6232 GB, free: 69.31 MB / 410.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.578e-06/0.7489, allocations: 3.312 kB / 0.6232 GB, free: 69.31 MB / 410.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00132/0.7503, allocations: 0.5923 MB / 0.6238 GB, free: 69.31 MB / 410.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001414/0.7517, allocations: 0.6495 MB / 0.6244 GB, free: 69.25 MB / 410.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001767/0.7519, allocations: 86.61 kB / 0.6245 GB, free: 69.25 MB / 410.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004018/0.7559, allocations: 6.044 MB / 0.6304 GB, free: 65.47 MB / 410.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.485e-06/0.7559, allocations: 3.375 kB / 0.6304 GB, free: 65.47 MB / 410.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004924/0.7608, allocations: 3.693 MB / 0.634 GB, free: 64.64 MB / 410.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001512/0.7623, allocations: 0.6839 MB / 0.6347 GB, free: 64.43 MB / 410.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002923/0.7626, allocations: 68.94 kB / 0.6347 GB, free: 64.43 MB / 410.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007872/0.7634, allocations: 94.47 kB / 0.6348 GB, free: 64.43 MB / 410.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003822/0.7638, allocations: 263.6 kB / 0.6351 GB, free: 64.42 MB / 410.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001287/0.7639, allocations: 94.81 kB / 0.6351 GB, free: 64.42 MB / 410.8 MB Notification: Performance of sorting global known variables: time 0.001489/0.7654, allocations: 1.46 MB / 0.6366 GB, free: 64.23 MB / 410.8 MB Notification: Performance of sort global known variables: time 8e-08/0.7654, allocations: 4.031 kB / 0.6366 GB, free: 64.23 MB / 410.8 MB Notification: Performance of remove unused functions: time 0.004272/0.7697, allocations: 1.547 MB / 0.6381 GB, free: 64.23 MB / 410.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 2 (smpm.inertiaRotor.w,quadraticTorque.phi) * 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 (362): * Single equations (assignments): 360 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (8,38,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004107/0.7701, allocations: 249.3 kB / 0.6383 GB, free: 64.14 MB / 410.8 MB Notification: Performance of simCode: created initialization part: time 0.004277/0.7743, allocations: 3.666 MB / 0.6419 GB, free: 62.62 MB / 410.8 MB Notification: Performance of simCode: created event and clocks part: time 4.658e-06/0.7744, allocations: 0 / 0.6419 GB, free: 62.62 MB / 410.8 MB Notification: Performance of simCode: created simulation system equations: time 0.001712/0.7761, allocations: 1.81 MB / 0.6437 GB, free: 61.29 MB / 410.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002463/0.7785, allocations: 0.9265 MB / 0.6446 GB, free: 60.84 MB / 410.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01507/0.7936, allocations: 13.22 MB / 0.6575 GB, free: 49.02 MB / 410.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001727/0.7953, allocations: 2.482 MB / 0.6599 GB, free: 47.16 MB / 410.8 MB Notification: Performance of simCode: alias equations: time 0.001958/0.7973, allocations: 0.6645 MB / 0.6606 GB, free: 46.65 MB / 410.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001431/0.7987, allocations: 1.011 MB / 0.6615 GB, free: 45.77 MB / 410.8 MB Notification: Performance of SimCode: time 1.623e-06/0.7987, allocations: 0 / 0.6615 GB, free: 45.77 MB / 410.8 MB Notification: Performance of Templates: time 0.1123/0.911, allocations: 60.24 MB / 0.7204 GB, free: 3.461 MB / 426.8 MB " [Timeout remaining time 659] make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource.makefile [Timeout 660] (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource.sim & ./HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=240 -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 5.178040941245854]