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.0006856/0.0006856, allocations: 81.05 kB / 9.981 MB, free: 0.707 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009938/0.001679, allocations: 440 kB / 10.41 MB, free: 284 kB / 10.45 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.9252/0.9252, allocations: 177.2 MB / 188.4 MB, free: 4.402 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.2028/1.128, allocations: 53.65 MB / 242 MB, free: 2.613 MB / 234.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.0007341/0.0007341, allocations: 156.5 kB / 242.9 MB, free: 1.727 MB / 234.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009289/0.001663, allocations: 475.9 kB / 243.4 MB, free: 1.277 MB / 234.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.02404/0.02404, allocations: 6.662 MB / 250.8 MB, free: 10.08 MB / 250.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.004659/0.02869, allocations: 2.66 MB / 253.5 MB, free: 7.406 MB / 250.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.803e-06/1.803e-06, allocations: 0 / 254.8 MB, free: 6.086 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.188e-05/1.369e-05, allocations: 2.312 kB / 254.8 MB, free: 6.082 MB / 250.7 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMPM_CurrentSource): time 0.01915/0.01917, allocations: 27.23 MB / 282 MB, free: 10.73 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.01818/0.03735, allocations: 8.918 MB / 290.9 MB, free: 1.785 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004839/0.04219, allocations: 250.8 kB / 291.2 MB, free: 1.539 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.008633/0.05082, allocations: 8.621 MB / 299.8 MB, free: 8.879 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00546/0.05628, allocations: 2.912 MB / 302.7 MB, free: 5.949 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003124/0.05941, allocations: 1.879 MB / 304.6 MB, free: 4.066 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.008523/0.06793, allocations: 10.55 MB / 315.1 MB, free: 9.48 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1735/0.2414, allocations: 13.96 MB / 329.1 MB, free: 11.34 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01074/0.2522, allocations: 8.567 MB / 337.7 MB, free: 11.27 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008961/0.2611, allocations: 5.986 MB / 343.6 MB, free: 11.27 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001793/0.2629, allocations: 1.537 MB / 345.2 MB, free: 11.27 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005459/0.2684, allocations: 1.907 MB / 347.1 MB, free: 11.27 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004569/0.2729, allocations: 2.454 MB / 349.5 MB, free: 11.27 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00599/0.2789, allocations: 3.319 MB / 352.9 MB, free: 11.21 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01333/0.2923, allocations: 9.348 MB / 362.2 MB, free: 5.145 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.026e-05/0.2923, allocations: 3.266 kB / 362.2 MB, free: 5.145 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.122e-06/0.2923, allocations: 0 / 362.2 MB, free: 5.145 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.000113/0.2924, allocations: 1.344 kB / 362.2 MB, free: 5.145 MB / 314.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.03574/0.3281, allocations: 13.43 MB / 375.6 MB, free: 9.609 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.897e-05/0.3282, allocations: 8.031 kB / 375.7 MB, free: 9.602 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01461/0.3428, allocations: 5.624 MB / 381.3 MB, free: 4.199 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006954/0.3497, allocations: 3.338 MB / 384.6 MB, free: 1.043 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003561/0.3501, allocations: 0.7063 MB / 385.3 MB, free: 356 kB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001506/0.3516, allocations: 0.9305 MB / 386.3 MB, free: 15.43 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01079/0.3624, allocations: 7.663 MB / 393.9 MB, free: 8.078 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001577/0.3625, allocations: 18.17 kB / 393.9 MB, free: 8.062 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006541/0.3632, allocations: 392.7 kB / 394.3 MB, free: 7.691 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003244/0.3635, allocations: 0.5038 MB / 394.8 MB, free: 7.184 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005951/0.3695, allocations: 3.85 MB / 398.7 MB, free: 3.293 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03229/0.4017, allocations: 29.61 MB / 428.3 MB, free: 6.566 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005671/0.4074, allocations: 4.8 MB / 433.1 MB, free: 1.93 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009888/0.4084, allocations: 0.9367 MB / 434 MB, free: 1.023 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002054/0.4086, allocations: 118 kB / 434.1 MB, free: 0.9102 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.604e-05/0.4087, allocations: 76.89 kB / 434.2 MB, free: 0.8281 MB / 378.7 MB Notification: Performance of pre-optimization done (n=372): time 5.32e-06/0.4087, allocations: 0 / 434.2 MB, free: 0.8281 MB / 378.7 MB Notification: Performance of matching and sorting (n=380): time 0.01391/0.4226, allocations: 7.542 MB / 441.8 MB, free: 9.383 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.303e-05/0.4226, allocations: 94.39 kB / 441.8 MB, free: 9.277 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00216/0.4248, allocations: 2.493 MB / 444.3 MB, free: 7.289 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000159/0.4249, allocations: 89.7 kB / 444.4 MB, free: 7.195 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001895/0.4268, allocations: 3.888 MB / 448.3 MB, free: 3.438 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007425/0.4276, allocations: 1.356 MB / 449.7 MB, free: 2.156 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001007/0.4286, allocations: 1.087 MB / 450.8 MB, free: 1.176 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 6.57e-05/0.4287, allocations: 301.1 kB / 451 MB, free: 0.8789 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007801/0.4294, allocations: 0.5622 MB / 451.6 MB, free: 320 kB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00211/0.4315, allocations: 3.086 MB / 454.7 MB, free: 12.25 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003625/0.4352, allocations: 4.717 MB / 459.4 MB, free: 6.82 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.782e-05/0.4352, allocations: 24 kB / 459.4 MB, free: 6.797 MB / 410.7 MB Notification: Performance of matching and sorting (n=768) (initialization): time 0.004726/0.4399, allocations: 3.886 MB / 463.3 MB, free: 3.449 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.915e-05/0.44, allocations: 40.03 kB / 463.4 MB, free: 3.41 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.005e-05/0.44, allocations: 84 kB / 463.4 MB, free: 3.328 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001382/0.4414, allocations: 0.7568 MB / 464.2 MB, free: 2.578 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002455/0.4439, allocations: 1.444 MB / 465.6 MB, free: 1.234 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004407/0.4483, allocations: 4.899 MB / 470.5 MB, free: 12.29 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001785/0.4501, allocations: 235.8 kB / 470.8 MB, free: 12.05 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002684/0.4503, allocations: 252 kB / 471 MB, free: 11.81 MB / 426.7 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.001706/0.452, allocations: 0.524 MB / 471.5 MB, free: 11.38 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004971/0.4525, allocations: 359.5 kB / 471.9 MB, free: 11.02 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003022/0.4556, allocations: 2.455 MB / 474.4 MB, free: 8.578 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.643e-05/0.4556, allocations: 36 kB / 474.4 MB, free: 8.543 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.566e-06/0.4556, allocations: 11.94 kB / 474.4 MB, free: 8.531 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.081e-05/0.4556, allocations: 23.92 kB / 474.4 MB, free: 8.508 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008125/0.4637, allocations: 6.526 MB / 480.9 MB, free: 2.57 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.001e-06/0.4637, allocations: 0 / 480.9 MB, free: 2.57 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001408/0.4651, allocations: 0.6862 MB / 481.6 MB, free: 1.918 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006868/0.4658, allocations: 487.9 kB / 482.1 MB, free: 1.441 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001147/0.467, allocations: 0.6232 MB / 482.7 MB, free: 0.8242 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004734/0.4674, allocations: 87.91 kB / 482.8 MB, free: 0.7383 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1489/0.6164, allocations: 4.445 MB / 487.3 MB, free: 99.22 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.861e-06/0.6164, allocations: 3.438 kB / 487.3 MB, free: 99.22 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00436/0.6207, allocations: 2.993 MB / 490.3 MB, free: 98.73 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004106/0.6211, allocations: 68.81 kB / 490.3 MB, free: 98.73 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008224/0.622, allocations: 91.5 kB / 490.4 MB, free: 98.73 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002843/0.6223, allocations: 260.7 kB / 490.7 MB, free: 98.72 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001377/0.6224, allocations: 81.2 kB / 490.8 MB, free: 98.72 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.00119/0.6236, allocations: 1.131 MB / 491.9 MB, free: 98.63 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.6236, allocations: 3.188 kB / 491.9 MB, free: 98.63 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.00334/0.6269, allocations: 1.542 MB / 493.4 MB, free: 98.63 MB / 426.7 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.0003565/0.6273, allocations: 244.6 kB / 493.7 MB, free: 98.56 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003025/0.6303, allocations: 3.224 MB / 496.9 MB, free: 98.17 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001313/0.6304, allocations: 92.27 kB / 497 MB, free: 98.15 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001502/0.6319, allocations: 1.78 MB / 498.8 MB, free: 97.83 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003056/0.635, allocations: 7.609 MB / 0.4945 GB, free: 90.82 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06134/0.6963, allocations: 13.38 MB / 0.5076 GB, free: 85.87 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001872/0.6982, allocations: 1.78 MB / 0.5093 GB, free: 85.59 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.002255/0.7005, allocations: 0.6672 MB / 0.51 GB, free: 85.45 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001492/0.702, allocations: 0.9155 MB / 0.5109 GB, free: 85.38 MB / 426.7 MB Notification: Performance of SimCode: time 2.043e-06/0.702, allocations: 4 kB / 0.5109 GB, free: 85.38 MB / 426.7 MB Notification: Performance of Templates: time 0.0751/0.7771, allocations: 63.98 MB / 0.5733 GB, free: 35.2 MB / 426.7 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: 4.380668132565916]